Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008


all groups > sql server programming > december 2003 > threads for sunday december 7

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Tracking Incremental Data
Posted by Sachin at 12/7/2003 11:01:38 PM
Hi All, I want to have incremental data on a secondary server from a primary server. One option which I have thought of is "To add a timestamp field to all the table" and use DTS to get it. Please can you tell me is this the best way. Please tell me if you know anything better than thi...more >>

SQL DMO - Retrieve Media Description from a file backup
Posted by Chris Whitehead at 12/7/2003 10:43:00 PM
If I backup a file directly to the hard disk without creating a Backup Device I can still specify a Media Name and Media Description. I can then view the Media Description using th following query:- RESTORE LABELONLY FROM DISK = 'c:\test.bak' Can I do the same with SQL DMO? I tried the fol...more >>

Output parameter in SP doesn't return value...
Posted by Andreas Terzis at 12/7/2003 10:36:24 PM
Hi there, I have a stored procedure that uses a dynamic statement and executes it using SP_EXECUTESQL. When I call the stored procedure from another script and set the output of the stored procedure to a variable, the variable contains nothing. Can you please help me with this? The scrip...more >>

Simple Questions
Posted by Steve at 12/7/2003 9:51:28 PM
Hi, 1- Can we use a 'data type' AutoNumber? If so how? 2- Is it possible to have a field of type Date or Time separately (Not DATETIME)? I just want to store the dates. 3- When I use the data type "MONEY" four digits appear after the point, while there should be two. 4- Can we create DOM...more >>

PLEASE HELP ME (sql querry analyser functions)
Posted by kalyan at 12/7/2003 9:41:07 PM
I AM NOT ABLE TO UNDERSTAND HOW TO FINE THE NUMBER HOW MANY TIMES A SUBSTRING IS REPEATED IN BASE STRING FOR EXAMPLE TAKE THE STRING "KALYAN" I HAVE TO FIND HOW MANYTIMES 'A' IS REPEATED IN IN "KALYAN" USING A SYSTEM DEFINED FUNCTION ( I SHULD NOT WRITE A STORD PROCEADURE) ANY ONE PLEASE HELP M...more >>

SQL Server ID
Posted by Jan Floris Van Der Wateren at 12/7/2003 9:40:53 PM
Thanks for all your replies on my question. What I wanted to know is how do you get a unique machine ID (numbers and\or letters) of the server that SQL Server is running on. (Not the server name). For example, motherboard or CPU ID or something similar. Thank you Jannie *** Sent via Deve...more >>

Views, Stored Procedures, and parameters
Posted by Melbourne Guy at 12/7/2003 6:28:08 PM
Hi all, I have a date range that needs to be used by a variety of different views in a database that provides monthly SLA statistics. The existing views have verbatim calcs for the date range in each and every view. Steve Kass provided some great logic for calcuating a @start and @fini...more >>

Distributed system patterns - SQL Server deployment
Posted by Bert Nieves at 12/7/2003 6:19:45 PM
DEV ENVIRONMENT: .NET and some COM DATABASE: SQL Server 2000 CLIENT OS: Win2K, WinXP SERVER OS: Win2K3 Greetings, I have a client who insists on having their customers in separate SQL databases for an online component. I instinctively feel that a consolidated database for all clients is ...more >>



Error 87 more info
Posted by mike at 12/7/2003 5:31:48 PM
We get the below error when running as a non sys admin account Does any one know what this is about i think its something to do with running the xp_cmdshell [Microsoft][ODBC SQL Server Driver][SQL Server]xpsql.cpp: Error 87 from GetProxyAccount on line 604 some saidto run this exe...more >>

Error 87 from GetProxyAccount on line 604
Posted by mike at 12/7/2003 5:13:18 PM
Does any one know what this is about i think its something to do with running the xp_cmdshell [Microsoft][ODBC SQL Server Driver][SQL Server]xpsql.cpp: Error 87 from GetProxyAccount on line 604 some saidto run this exec master..xp_sqlagent_proxy_account N'SET', N'DomainName', N'Us...more >>

DBPROP_CANHOLDROWS and deffered insertion into rowset (SQLOLEDB)
Posted by Max Motovilov at 12/7/2003 4:57:36 PM
I've seen a similar question asked, but not answered before... perhaps I'll be luckier than the others? :) Basically, I am trying to achieve deferred insertion into a rowset: insert multiple records in a single round trip to the server. To do that, I open a rowset with DBPROP_IRowsetUpdate on ...more >>

Dynamic date ranged SQL queries
Posted by Melbourne Guy at 12/7/2003 4:04:52 PM
Hi all, sorry for what will be to some a simple question. I am looking to find some sample queries/scripting that will select a date range of the current month for the current date less X (where X is a constant number of days). e.g. if it was 2nd December and X was 4 then it would ...more >>

Can this be done without a cursor?
Posted by Larry Gibson at 12/7/2003 3:00:03 PM
Here's the senario. I have a list of users who have received services during the year. I need a report that gives me the languages they speak both year to date and month to date. The challenge for me is to figure out how to output something like this: Language MTD YTD English 2 ...more >>

Confused About Cursors
Posted by Wayne Wengert at 12/7/2003 2:57:00 PM
I keep seeing references to "using cursors" in many posts and I am trying to understand exactly what a "cursor" is? I've been going through BOL thinking that would help but parts of those articles only added to the confusion. For example, one section in BOL is as follows: ---------------------...more >>

find out if object used
Posted by John A Grandy at 12/7/2003 2:33:02 PM
regardign finding out if an object (such as a SP or a UDF) is used anywhere in a database ... i suppose one method would be to script the entire database and then load the .sql file into a text editor and search for the object but perhaps there is a better way ? ...more >>

Fix Duplicate fields Rather then Duplicate Records?
Posted by John Rugo at 12/7/2003 10:32:56 AM
Hi All, I have a problem... I have duplicate field values that are causing Duplicate Records in a sense. Examples: -------------------------------- CREATE TABLE VTable (vid VarChar(100), vname VarChar(50)) Insert into VTable (vid, vname) Values('1', 'bill') Insert into VTable (vid, vname) V...more >>

CHECKSUM Smalldatetime
Posted by peetyport NO[at]SPAM hotmail.com at 12/7/2003 9:03:41 AM
I have a table being replicated with two columns named "effdate" and "termdate" which have a datatype which are smalldatetime. The value for "effdate" is 10/1/2002. The value for "termdate" is 12/31/2078. On my production server when I query this table it returns the values "2002-10-01 00:00...more >>

Urgent Exec. time of SP btw Query Analyser and ASP
Posted by Nagendra at 12/7/2003 8:08:00 AM
hi Experts, i have a problem in executing a sp through Query Analyser and ASP command object. The execution time of sp in Query Analyser is taking 2 sec and the same exec statement is getting time out through ADO command object in ASP. exec USP_ENQUIRY_SEARCH @ENROLMENT_NO='BLR',@GROUP_NA...more >>


DevelopmentNow Blog