Posts

Showing posts from September, 2012

Need debugging help--stored procedure to move database objects

hi all--i'm adapting stored procedure work on transferring sql server 2005 tables , other objects owned under dbo schema on database to another non-dbo schema.  given that, i'm trying use "if...else" prevent dbo-owned stored procedures , tables dtproperties moving rest of objects non-dbo schema.  here's code: if exists ( select * from sys.objects where object_id = object_id ( n '[dbo].[chobjowner]' ) and objectproperty ( object_id , n 'isprocedure' ) = 1 ) drop procedure [dbo] . [chobjowner] go set quoted_identifier off set ansi_nulls on go create proc chobjowner ( @usrname varchar ( 20 ), @newusrname varchar ( 50 )) as -- @usrname current user -- @newusrname new user set nocount on declare @uid int -- uid of user declare @objname varchar ( 50 ) -- object name owned user declare @currobjname varchar ( 50 ) -- checks existing object owned new user declare @outstr varchar ( 256 ) -- sql

using Silverlight library in regular .NET library/app

hi, i've developed silverlight dll i'm using in silverlight application. i've developed console application , i'd wanted use silverlight library in console application. added reference silverlight dll without problem, when try use simple method (ex. int getsomething(int i)) receive error different version of mscorlib.dll. is there way go around problem can use silverlight class library in other type of projects without limitations? thanks in advance you have link source code true .net assembly , rebuild it. silverlight has it's own subset of .net framework can't share assemblies between sl & standard .net. you can use compiler directives #silverlight if have incompatible code. Silverlight  >  Programming Silverlight with .NET – General

Full Text Search for Images ( Scanned documents)

hi, using sql server 2008 , full text search. working fine pdf / doc files not working .jpg files. have document scanned , stored in varbinnary datatype in db. able search .doc /.xml /.pdf files .. not able search .jpg. not getting ".jgp" extension in result of following query select document_type, version, manufacturer sys.fulltext_document_types order document_type please suggest, how it hi, updating here… if want use full-text search .jpg document, need install full-text search filter this document type. can find more information on bol, see full-text search filters . thanks, chunsong please remember mark replies answers if , unmark them if provide no help. SQL Server  >  Getting started with SQL Server

EXEC sp_insertRecord has too many arguments specified: Msg 8144, Level 16, State 2-Why I got this error?

hi all, in object explorer of computername\sqlexpress, have database "shcdb" table "dbo.myfriends" has fields "personid" (int), "firstname", "lastname", "streetaddress", "city", "state", "zipcode", "e-mailaddress" set up.  when executed following query: /////----shcsp-1.sql---////   use shcdb go exec sp_insertrecord 3, "mary", "smith", "789 new st.", "chicago", "illinos", "12345", " m_smith@yahoo.com " go ///////////////////////////////////////////////////////////// i got following error message: msg 8144, level 16, state 2, procure sp_insertrecord, line 0 procedure or function sp_insertrecord has many arguments specified. (1) why did error? (2) can documents explaining procedures 'sp_insertrecord', 'sp_delecterocord', 'sp_getrecord', 'sp_updaterecord', etc. , err

MS SQL Server 2012 Install Fails

hi all, got following message when trying install ms sql server 2012 title: microsoft sql server 2012  setup ------------------------------ following error has occurred: not find database engine startup handle. evttype=0xd15b4eb2%25400x4bdaf9ba%25401306%254024 ------------------------------ any ideas? hello, please see following article: http://support.microsoft.com/?kbid=2015754   hope helps. regards, alberto morillo sqlcoffee.com SQL Server  >  SQL Server Setup & Upgrade

Need to add $ symbol in the amount column

Image
hi all, i need add $ symbol in 1 of value column in ssrs report.(ssrs 2008 r2). but , problem $ should left aligned , value should right aligned.   if value 0 $ has display left aligned below "$                0". can 1 suggest me done. thanks n advance. bala krishna hi balakrishna141, based on description, want add “$” amount in 1 textbox, the”$” align left of textbox , amount align right of textbox, right? i have tested on local environment , find there limitation of using html , mentioned solution provided visakh16 have little problem, ,we can use method creating rectangle(the rectangle should same size cell of table) , put 2 textboxes (textbox1 put value of “$”,textbox2 put value of amount) in , replace [amount] textbox rectangle, set properties of both textbox(textbox1:textalign=left, textbox2:textalign=right) details steps below reference: create rectangle , place 2 textboxes inside rectangle in first text, put $ , right align it in secon

2008 R2 security question

<p>i having devil of time trying service broker working. user has db_owner rights on 2 databases within same instance. not have sysadmin privileges can them if needed. have setup sb using 2005 using different instances , perplexed when having these issues. before go 'sa' route know if setting using sysadmin priv , using&nbsp;'execute owner' on activation procedure alleviate pain. have tried can think of. shouldn't have setup endpoints , such since internal instance, correct? if run through in tutorial in instance <em>i this. this message not delivered because targeted service not support service contract. targeted service: '//procred_db/cme_updhourstargetservice', service contract: '//updatecmehours/cmeupdatehourscontract'.</p> begin dialog @initdlghandle      service [//cme_db/cme_updhoursinitservice]      service n'//procred_db/cme_updhourstargetservice', '10c4f502-5912-4eed-be52-ca4d28bf0044'   

Replication and primary key issues

  i have customer experiencing issue unsure how resolve.  have 3 databases, 2 downstream databases replicate single database.  have same schema across 3 databases.  when devices report downstream database, records replicated up.  what happening when customer moves device 1 downstream database other, start seeing primary key errors.  example, lets , b downstream databases, if device reported a, there record device in replicated up.  if move device b, see primary key errors.  can exact errors if necessary.  how sql replication handle this?  expect if record exists update, not insert.  since cannot have duplicate rows same id, appears if database b replicating trying insert instead of update, can true? add column originating server id pks , give column default of @@servername. way not these collisions. option use dbcc checkident reseed identity elements ranges of identity values not collide. for example on server don't anything. on server b set ide

SPN get deregisters automatically in SQL Server Clustering

while failover of clustered instance of sql server, spn gets deregisters automatically. after reboot have register spn manually, should done automatically. before failover lists account on running below command. after failover not lists. please on it. setspn -l domainname\accountname please vote & "mark answer" if post helpful you. cheers prakash nandwana bangalore , india hello, please see following post: http://blogs.technet.com/b/kevinholman/archive/2007/12/13/system-center-operations-manager-sdk-service-failed-to-register-an-spn.aspx hope helps. regards, alberto morillo sqlcoffee.com SQL Server  >  SQL Server Setup & Upgrade

Image Features ?

hello world  i need impliment features image viewer. like  fit height fit width fit window zoom in zoom out i using mvvm pattern please let me know hows possible using silverlight mvvm here image viewer scrren https://skydrive.live.com/redir.aspx?cid=4ac49aa25f1e872e&resid=4ac49aa25f1e872e!145&parid=root http://www.silverlight.net/learn/graphics/deep-zoom/deep-zoom-(silverlight-quickstart) http://diptimayapatra.wordpress.com/2010/06/28/zoom-in-and-zoom-out-an-image-with-mouse-wheel-in-silverlight-4/ http://stackoverflow.com/questions/2495857/real-time-image-slicing-for-deep-zoom-and-silverlight-4 http://weblogs.asp.net/lduveau/archive/2009/11/20/silverlight-4-mouse-wheel-support.aspx http://www.codeproject.com/articles/167453/a-silverlight-custom-control-for-zooming-and-panni http://www.c-sharpcorner.com/uploadfile/dpatra/zoom-in-and-zoom-out-an-image-with-mouse-wheel-in-silverlight-4/

Firing events upon changes to a FrameworkElement

okay, here situation: in app building, have lot of "adorning controls".  clarify means, there things "resize adorner".  when object comes focus in app, resize handles appear , give user option resize object.  resize adorner.  there other kinds of adorners have built well. i decided consolidate adorners , make them inherit 1 base adorner class created.  adorner class holds reference adornedelement.....the thing adorner adorning.  adornedelement frameworkelement.  basically, long adorner inherits base adorner class, can accept frameworkelement thing adorn. i have created event call adornedelementchanged, , wanting fire event any time in adornedelement gets changed (whether entire object or property of object...such width or height).  have not found way this.  far have fire event myself anytime of classes change adornerelement.  example, lets have resize adorner.  in class might this:  public void resizeadornedelement ( double newheight, double neww

Using Silverlight with Chrome Cast

is there plug in can download allow slverlight , chrome cast work together?  hooked chrome caster , when try stream video amazon not work.  have windows 7 on computer. hi, i don't familar chrome case, suggest move chromecast forum better support, here forum link: https://productforums.google.com/forum/#!forum/chromecast , it appropriate , more experts assist you.  best regards, we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place. click here participate survey. Silverlight  >  Hosting and Streaming with Silverlight

Get cumulative total value on x-axis.

i'm displaying: january $200 february $100 march $400 i want display:( i've set custom mmm on axis-properties, still months not getting below required format)  jan $200 feb $100 mar $400 total $700 on x-axis.  and want y-axis divided in intervals of 200, though i've set interval 200, displaying in divisions of 2000. hi shivn, from information, want display jan feb mar.... rather january february march ....to achieve requirement, follow there steps below: 1.      right-click datafield on x-axis, , select category group properties 2.      click fx button @ of drop-down list of label 3.      type in expression =left(fields!month.value,3) then want. best regards, challen fu   SQL Server  >  SQL Server Reporting Services, Power View

TeamCenter Integration with TFS

hello friends, any 1 has experience integrating teamcenter tfs maintaining project portals in teamcenter? regards, ravi bavanari hi ravi, i don’t find official article integration teamcenter tfs. think need integration tfs through tfs integration platform . please try it. regards starain we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place. click here participate survey. Archived Forums V  >  Team Foundation Server - Setup and Administration

getting spaces while concatenating column and string

hi all, i am getting spaces while concatenating column , string. below example select empname++'test' employee result: mandava                test expected result: mandavatest regards, mandava. select ltrim(rtrim(empname))+'test' employee hope helps!! SQL Server  >  Getting started with SQL Server

Navigation to another report via a Matrix Table

i have created matrix table... , want add link various report base on row. field.. .how do this? hi sam233, based on requirement, think add action of go report, when click row’s value, jump subreport, please make sure subreport works fine before add action, follow these steps: 1.     in design view, right-click text box, image, or chart want add link , click properties . 2.     in properties dialog box report item, click action . 3.     select go report . additional sections appear in dialog box option. 4.     in select report list , type or select name of report want jump to. 5.     if have specify parameters drillthrough report, follow next step. 6.     in use these parameters run report , click add . new row added parameter grid. ·          in name text box, type name of report parameter in drillthrough report. if drillthrough report in report server project, parameter names available in drop-down list. note: names in parameter list must match

Silverlight Hosting

hi  what needed host silverlight apps aspx startup page in windows vista sp1 iis 7, web deployment tools installed.  i need published code other m/c work here. naveen well followed method hosting. hope link helps http://weblogs.asp.net/javiervillarreal/archive/2008/06/14/silverlight-error-2104-could-not-download-the-silverlight-application-in-iis6.aspx basically these settings that need modified as shown in example link given. if post helpful anyway please 'mark answer' sharker khaleed mahmud(mcpd) Silverlight  >  Hosting and Streaming with Silverlight

Hierarchy security permissions to read ant write cube

hello, i have problematic situation - need allow of writing cube in detailed level members, see hierarchy members. f.e. use read-write mdx script "isleaf([dimensionx].[hierarchyofx]) ant enables read-write persission detailed members of hierachy. problem cant see subtotals of hierarchy levels... what expression should use resolve problem?   thanks, paulius       hi paulius, if want enable cubewriteback, have use cell security. you can enter following mdx expressions different sections "allow reading of cube content": 1 "allow reading , writing of cube content": isleaf([product].[product categories].currentmember),1,0) please keep datamember in mind if dimension parent/child dimension.   hope helps tom SQL Server  >  SQL Server Analysis Se

Problem with a link between Datagrid and Dataform throw a childwindow

hello i develop visual studio 2010 , silverlight 5. my poject has ria service connect sql server database. i want show detail of datagrid row in childwindow. my problem : childwildow shows textbox without data... so, xaml of master page : <usercontrol x:class="lexique.mainpage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:ignorable="d" d:designheight="300" d:designwidth="400" xmlns:data="clr-namespace:system.windows.controls;assembly=system.windows.controls.data" xmlns:riacontrols="clr-namespace:system.windows.controls;assembly=system.windows.controls.domainservices" xmlns:my="clr-names

Replication issue

i trying setup replication between our web server, , client's server. on client's server, in sql (using 2005 standard edition). setup replication; , snapshot works, push throws error: login failed user '(null)'. reason: not associated trusted sql server connection. process not connect subscriber '<server>'. step failed. i know can connect, because can query of matching database on server clients server. assumption it's issue sql vs. windows authentication. typically when setting replication has step setup secure settings, , select "run under sql" - didn't see option time. any how fix appreciated. thank you. hi,  use "sp_change_subscription_properties" change  login details.... use " @property=" parameter in sp SQL Server  > 

How to make a Simple Database in SQL server

hi,    beginner developer, creating simple application create, handle small database of genral store products (like adding products , substracting no. of products) . creating application native win32 apis in vs 2005.   please suggest , how create such data base , , suggest me link step step knowledge (learn) it.  do need learn odbc or oledb or sql server     thanks   this may atrting point feet wet: http://msdn2.microsoft.com/en-us/library/ms165612.aspx jens k. suessmeyer --- http://www.sqlserver2005.de --- SQL Server  >  SQL Server Data Access

Handling NULL values in Derived Column

hi, i have incoming data in format 08301995 date in string format. i need convert datetime. for using expression substring((dt_wstr)dob,5,4)+"-"+substring((dt_wstr,8)dob,1,2)+"-"+substring((dt_wstr,8)dob,3,2)+" 00:00:00.000" which working fine if there no null values. failing when sees null values i have added function handle null values , here expression isnull(dob) ? "null(dt_dbtimestamp,50)" : substring((dt_wstr)dob,5,4)+"-"+substring((dt_wstr,8)dob,1,2)+"-"+substring((dt_wstr,8)dob,3,2)+" 00:00:00.000" which supposed put in null value in output column when see null value in incoming column , if doesnt has convert date datetime. any ideas of missing here thanks avinash meka use this (isnull(dob) || trim(dob) == "") ? null(dt_dbtimestamp) : (dt_dbtimestamp)(substring(dob,5,4) + "-" + substring(dob,1,2) + "-" + substring(dob,3,2)) nitesh rai- please mark post answered if answers ques

SQL 2008 R2 SSRS integrated with Sharepoint 2007 sp2

hi all, does have guide on proper steps install "sql server 2008 r2 reporting services add-in microsoft sharepoint technologies 2010" on sharepoint 2007 sp2 standalone machine? i've installed "sql2008 reporting service add-in sharepoint" on sharepoint 2007 sp sql 2008 ssrs r2. error " specified method not supported error" .   "sql server 2008 r2 reporting services add-in microsoft sharepoint technologies 2010" seem support sharepoint 2007. wrong? if i run file installation 'rscustomaction /i', 14 hive. believe looking sharepoint 2010. can force 12 hive instead?   if understand question correctly, have sql server ssrs r2 want integrate sharepoint 2007. the   "sql server 2008 r2 reporting services add-in microsoft sharepoint technologies 2010" not work sharepoint 2007. instead, believe need download sql server 2008 sp2 reporting services add-in from here: http://www.microsoft.com/downloads/en/details.aspx?famil

Customize the type of existing field in TFS bug template

Image
hi, i trying customize type of existing field. there field "priority" of type int, requirement change type of field string. but getting following error message while uploading customized bug template:    thanks in advance help. prince jain you can't modify property of existing field. may be, create own appropriate data type --ss (mcts) Archived Forums V  >  Team Foundation Server - Process Templates

SSIS scheduling problem...

i have scheduled ssis packages sql job , used following line create step in job ssis   exec xp_cmdshell 'dtexec /f "ssis path" /de "alertcom"'   but found 2 problem 1. when try kill job, turn killing status infact countinue executing, perhaps takes time killed 2. whenever occure in packge, job history not reflect , shows successfull completion.   so there efficient way schedule ssis other have mentioned or possible make improvements in this. yes. create regular sql server job , set step type "integration services." point package need run.   SQL Server  >  SQL Server Integration Services

Support for timestamp data type in Data-Sync

i trying set data-sync between onsite sql 2008 , sql azure database. getting error "the following columns skipped because contain incompatible data types. also, identity columns not have clustered index not supported." looking further @ actual columns see of them of data type timestamp. when @ support page http://msdn.microsoft.com/en-us/library/windowsazure/ee336233.aspx  it says timestamp data type supported in sql azure database. could please let me know if bug/bad information/etc. thank in advance hi, the value in timestamp column auto generated. there no tsql command insert value timestamp cloumn. provider not support it. dss cannot set value column (sql it), don't support it. block timestamp datatype in ui. also, timestamp values make sense local database. @@dbts not same on different machines. doesn't make sense move too Microsoft Azure

Release Management - builds and releases get stuck in waiting for next available agent

under release management, when queuing new builds or releases, our builds stuck waiting next available agent in position 1. have 4 build agents , not @ capacity. had issue 2 weeks ago , happening again. happen else? hi, thanks posting here. there outage reported related release management request try again , let know feedback can assist more on query. for future reference please go through service blog . hope helps! regards, _______________________________________________________________________________________________________ if post answers question, please click mark answer on post , vote helpful. Archived Forums V  >  Visual Studio Team Services

SqlServer2008 to Sql Server Compact Edition!

hi dear friends, have questions sql server compact edition. using sqlserver2008 , developing in visual studio 2008 c#.net , linq connect database.my question is (1)is possible change our database sql server compact edition? (2)what differece between both of this? (3)is there limitions use sqlserver ce,for eg.database size,data size? (4)can ce version supports data type sqlserver2008? best regards, michael 1) yes, can use export2sqlce utility: http://exportsqlce.codeplex.com 2) http://erikej.blogspot.com/2011/01/comparison-of-sql-server-compact-4-and.html 3) see 2 4) no, http://msdn.microsoft.com/en-us/library/ms172424(v=sql.100).aspx visit sql server compact blog - please mark answer, if it. SQL Server  >  SQL Server Compact

SQL 2005 Database Logs

was working on clients sharepoint site [trying] , when went open got this error:  operation aborted (exception hresult: 0x80004004 (e_abort)) from read online sql log files need cleared out. i looked @ databases , fine far memory goes. central administration opens fine, notice i can not add the port these sites located on? sql issue? has else come across error?     it sql log file issue.  backup sql database using built-in backup function in sql management studio.  shrink database. SQL Server  >  SQL Server Database Engine

Error on model deployment ('MetadataCloneRequest')

hello, i tried deploy services model dev/test server qa server. model exists on qa server, tried update type deployment, deploying a package of model without data. following error message: "unable update model. error occurred while processing message request type 'metadataclonerequest'. see exception details more information. name exists. type different name. database error has occurred. contact system administrator." i temporarily deleted existing subscription views, because of known bug:   http://social.msdn.microsoft.com/forums/en/mdmgeneral/thread/2456549d-f9c2-415b-8f97-fbff5a62d2f6 the message seems suggest need delete more existing items...do know?  can tell me more details on error? don't see errors or info in application log... kind regards, susanne   go http://support.microsoft.com select "contact support professional email, online, or phone".  

Why when running my .aspx page with Silverlight control is it prompting me for server credentials when making WCF call?

i have silverlight 2 control in .aspx page makes wcf call data control.  call made upon loading control.  when run application, web page posts login box stating wcf call needs credentials server service installed authenticate.  iis site hosts wcf service has anonymous access turned on, , have implemented no security in wcf service. what going on here? thanks! i think figured out; client endpoint configuration issue , not iis issue.  seemed "servicereferences.clientconfig" file being created / auto generated in client project consuming service, using server's dns name rather ip of service.  causing credentials prompt. endpoint address="http://myservername/mywcfservice.svc" changed to...  endpoint address="http://100.100.1.100/mywcfservice.svc" once mapped wcf service ip dns, was able change endpoint in client configuration follows: endpoint address="http://mydnsservicename/mywcfservice.svc" ...and worked pro

Event based scheduling of SSIS packages

hi, is possible event based scheduling of ssis packages sql server agent? schedule package run when file available in particular folder. does have similar experiences share?   regards, emil please have @ links provided daniel crowell http://forums.microsoft.com/msdn/showpost.aspx?postid=1844915&siteid=1 this should help.   thanks subhash subramanyam.   SQL Server  >  SQL Server Integration Services

JobProcessingStatus stuck on DataChange

hi, we've had problems our warehouse , cube, ant cube admin status wont load. i've tried rebuild warehouse, since yesterday warehouse tasks stuck on 'datachange' , analysis tasks wont run. is there anyway see if still working in background? <warehouseprocessingonlinestatus>started</warehouseprocessingonlinestatus> <analysisprocessingonlinestatus>started</analysisprocessingonlinestatus> <jobprocessingstatus>datachange</jobprocessingstatus> <jobsrunning>0</jobsrunning> <jobsqueued>0</jobsqueued> -<instance jobsqueued="0" jobsrunning="0" jobprocessingstatus="idle" name="team foundation"> -<jobs> -<job jobprocessingstatus="idle" name="common structures warehouse sync"> <lastrun result="succeeded" endtimeutc="2013-07-09t08:42:54.857z" executionstarttimeutc="2013-07-09t08:42:54.57z" queuetimeutc=

Locking Down SQL 2005

i'm not sure best way lock down sql server 2005. added login group maps ad group. group mapped public role , problem in group can manage server right-clicking , selecting properties. understanding allowed control server permissions removing doesn't allow them logon server anymore. there way allow people connect server not manage it? thanks! by default when give login public fixed server role, has the server permission of "connect sql". it should not have control server permission sysadmin. since can change server settings, it that the logins belong existing built-in admin group.  besides lekss mentioned, recommend you run following query check details: 1. check principal's id, run select * sys.server_principals 2. check detailed server permission, run select * sys.server_permissions pay attention following columns in output: class_desc, grantee_principal_id, permission_name , state.  http://msdn.microsoft.com/en-us/library/ms186260.aspx if any of logins have c

is there a way to move the data from reportserver DB from sql 2000 to sql 2008.

hi, we looking migrate sql 2000 reports sql 2008 server. sql 2008 has report server db. there around 200+ reports in sql 2000 , downloading each report tedious , have permission issue well. there way move 200 reports data sql 2000 server report server db sql 2008 report server db? hello, see (un)official guide sql reporting services 2000 & 2005 interop ; should work 2008 same way. see also: how to: migrate reporting services installation olaf helper [ blog ] [ xing ] [ mvp ] SQL Server  >  SQL Server Reporting Services, Power View

could not load the DLL xpstar9.0.dll

hi, i'm running sql server 2005 on windows 7.  when create new database following error: error 17750:could not load dll xpstar9.0.dll, or 1 of dll's references. reason: 126 (the specified module not found.)    why problem occured ? i have seen xpstar*.* missing sometime in past.  (it years ago me.)  the easiest fix copy other server , proper path server missing dll.  e.g. c:\program files\microsoft sql server\mssql.1\mssql\binn of course, correct thing try repair installation of sql server.  if not work, uninstall , reinstall server.  seemed heavy route go.  (or lazy in days.)   insist on having complete sql server installation. fwiw, rlf SQL Server  >  SQL Server Tools

Binding an element's visibility to a toggleButton or checkBox

Image
what preferred method binding visibility of 1 element checkbox or togglebutton's checked state?  understand need write converter return value visible or collapsed based on checkbox state, boolean -- silverlight 3 doesn't include support wpf converter.  used converter post: http://stackoverflow.com/questions/1534208/binding-to-a-wpf-togglebuttons-ischecked-state when try build project, xaml invalid.  'the name "booleantovisibilityconverter" not exist in namespace "http://schemas.microsoft.com/client/2007".  <usercontrol xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:class="visibilitytest.mainpage" width="640" height="480"> <usercontrol.resources> <booleantovisibilityconverter x:key="booleantovisibilityconverter" /> </usercontrol.resources> <canvas x:name="la