Archived Months
March 2003
April 2003
May 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
all groups > sql server (microsoft) > september 2003

SQL help please
Posted by noone at 9/30/2003 11:31:49 AM
I am not sure of the best way to do this. I have a table that is a log for visitors. I want to return a record set where each row is a count of the hits for the day. Just one column is fine as long as the the order is correct by date or two columns date and hits would work. I would perfer this t...more >>


can SQL Server support multi lingual environment
Posted by Adam at 9/28/2003 9:19:53 PM
I need to convert an application (originally written for English users) to support both English and French. I want to minimize making changes to SQLs and table structures in the back end. What can I do? Thanks in advance. Adam ...more >>

force SQL server to cache some tables
Posted by rezabe NO[at]SPAM hotmail.com at 9/26/2003 5:50:24 PM
In my application, we have a lot of metadata tables stored in the database. Our server first caches all this information at startup (and never queries for them again). The major problem with our server startup time is the SQL server round trip time. The first startup after a reboot is alwa...more >>

Union all with exec
Posted by Roy at 9/25/2003 2:37:07 PM
I am having problems with a union all sproc. In the sproc, I have to determine the value of a param and I am getting the value using an exec statement. When I run the sproc, it returns the value of the exec and the first of the union query. If I comment the exec statement and pass the value the ...more >>

How do I make this as fast as possible?
Posted by Jim Hubbard at 9/25/2003 1:16:17 AM
I have a test project that I am trying to code to be as fast as possible. The project is a lottery speculation project that uses .Net web services to return an XML recordset. The goal is to accept any number of 5 possible balls, and return a recordset of all past draws and possible draws tha...more >>

SQL Server "short-curcuit" evaluation of search params
Posted by mortennp NO[at]SPAM hotmail.com at 9/24/2003 1:05:47 AM
Hi We have a SQL Server 2000 database with a run-of-the-mill customers table containing nvarchar columns for customer name and customer address. There's a clustered index on name and a non-clustered index on address. Users can search the customers from a web form using both name and add...more >>

Restricted Access-Single User
Posted by xmyo NO[at]SPAM yahoo.co.uk at 9/23/2003 3:55:36 AM
Is it possible for SQL to automatically switch access to a database to be Single User only....more >>

Making backups in Enterprise Manager
Posted by Simon Wigzell at 9/22/2003 4:48:54 AM
I was doing exports to text files until I discovered that my text fields were being trimmed to 255 characters. (I was just about to re-import a text file too, as I had messed up a table. If I hadn't noticed that the fields were trimmed I would have been screwed! It doesn't tell you that it is tr...more >>



how to do batch find/replace for sprocs...
Posted by tim NO[at]SPAM scootasp.net at 9/18/2003 3:12:38 AM
hi, i have just transfered my database to the production server, and i find now that i need to reference all the tables with dbName.tablename in the stored procedures, before i just had tablename to refer to the tables and it worked fine. my problem is i have a hundred sprocs and i'm doing r...more >>

Sql Server 2000 linked server to Access 97/2000 incompatability
Posted by erickr NO[at]SPAM innovat.com at 9/17/2003 2:20:21 PM
We are experiencing a problem with Sql Server 2000 linking to an Access 97 file. We have two machines that link to this .mdb file, and we recently upgraded one to newer hardware, SP3a, MDAC 2.8, etc. The link on this upgraded machine no longer works, giving this message: Server: Msg 7399, L...more >>

How to do this query
Posted by Eric at 9/15/2003 1:15:49 PM
I'm trying to figure out how do a particular query. It seems simple enough, but I can't figure out how to pull it off. Here's the set up. I have a table of clients (tblClients), a table of US states (tblStates) and 'linking' table (tblClientStates) to id which states a particular client opera...more >>

SQL Linked server to ORACLE returning error after installation of KB824146 cirtical patch
Posted by brajesh.kumar NO[at]SPAM wellsfargo.com at 9/15/2003 12:41:38 PM
The patch installation for KB824146 venerability went eventless and SQL server 2000 and the Windows 2000 Adv Server Box are up and running, BUT All my linked servers pointing to ORACLE servers are returning error. >> Error 7399: OLE DB provider 'MSDAORA' reported an error. OLE DB error trac...more >>

SQL SELECT ed on *PART* of a Text Field?
Posted by wetchman NO[at]SPAM hotmail.com at 9/15/2003 12:22:10 PM
Hello, I'm trying to figure out some SQL here and am wondering this: Is it possible to select data based on a sub-string of a text field? Say I have these values in a field called "ROOMS": |1|2|5|45|36|27| And say the ROOMS field in any record will always be pipe-enclosed numeric values. ...more >>

Deadlocks, severity level, and HRESULT
Posted by kaligrrl NO[at]SPAM yahoo.com at 9/12/2003 9:37:53 AM
I am coding a large VB project, using Win2k, SQL Server 2000 SP1, COM+, and VB6SP5. We have been having some problems with transactions not being rolled back when an error was raised, and we have traced it to the following situation. I'm looking for strategies of error handling for this situat...more >>

insert into identity column
Posted by Robert at 9/10/2003 5:17:23 PM
Hi, I would like to know how to disable the identity column for an insertion and enable an identity column after the insertion. Is there a query that i can send, like USE_IDENTITY = NO or anything similar. Do i have to ALTER TABLE... Thanks a lot. ...more >>

Fastest method of complex retrival
Posted by brianlfairchild NO[at]SPAM hotmail.com at 9/9/2003 7:26:12 AM
I have a list of product id's that have a common name. In the database each product id is a seperate record. I want to roll these up into a display grid where each row represents a product name with a column consisting of a comma-delimited list of id's. I tried doing this with a function that ...more >>

SQL-92
Posted by BugHunter at 9/8/2003 9:13:08 PM
Hi there, I'm working on SQL parser at the moment and want to create a set of tests for select statement. I'm too lazy to type all possible variants of select statement. Does anybody have or can point to the list of possible select statements (I mean a reasonable subset) examples? Thank...more >>

Counting Rows Help Needed
Posted by DavidC at 9/4/2003 9:48:30 AM
Anyone know how to count rows in a table depending on 2 columns, and different values within the second column. Basically i am trying to obtain the resultset example below from the table example below TABLE example: Date | Status ------------------------- 2003/07/01 ...more >>

cross tab??
Posted by u50415039 NO[at]SPAM spawnkill.ip-mobilphone.net at 9/4/2003 6:02:05 AM
thought my question was misinterpreted. actual table can be smaller or larger. but, within a procedure need to turn a created #temptable similar to(examid is in asc order): (id, p/f, examid, examname) 1 f xxxx xxxxx 1 f xxxx xxxxx 1 f xxxx xxxxx 2 p 3 ...more >>

query??
Posted by u50415039 NO[at]SPAM spawnkill.ip-mobilphone.net at 9/3/2003 4:36:02 AM
#temptable (studentID,p/f,examid,examname): 1 p 2 f 100 bio 2 f 101 mTH 2 f 102 CHM 2 f 103 spts 2 f 104 LIT 2 f 107 geo 2 f 109 phys 2 f 110 eng 2 f 111 hist 3 p 4 f 100 bio 4 f 102 chm 4 f 109 phys 4 f ...more >>

can sql2000 handle 2000 concurrent connection?
Posted by Victor Tomb at 9/3/2003 12:53:14 AM
dear all, i'm developing an application for hotel industry. the question is can sql2000 handle 2000 concurrent connection & what kind of best hardware requirement to perform the jobs. assistance are appreciated. tankQ. ...more >>

pass a value
Posted by u128845214 NO[at]SPAM spawnkill.ip-mobilphone.net at 9/2/2003 2:54:02 AM
is it possible to do: (A) declare @numberofitems Int @numberofitems = select max(itemorder) from store, department, etc. and pass the @numberofitems to a #tempStore table, like: (B) (store, department, @numberofitems,...) I got itemorder but not the number of items in each department A...more >>

FOR XML (multiple SELECTS into one xml doc)
Posted by mbwalmsley NO[at]SPAM hotmail.com at 9/1/2003 5:39:44 PM
hi folks, i want to run several SELECT statements (from several tables), and I want all of the result sets to be returned in one XML document. It could be as simple as SELECT * FROM table1 SELECT * FROM table2 SELECT * FROM table3 but the thing is I need it all returned in one xml f...more >>

Newbie Question
Posted by Randy Warner at 9/1/2003 3:09:11 AM
We just began looking into upsizing an Access 2000 database and applications to SQL 2000 at work and a question arose about whether we would be gaining any benefit if we upsize only the backend and just linked the tables to the current application front-end. Specifically: Wouldn't doing thing...more >>


DevelopmentNow Blog