Archived Months
January 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
all groups > sql server (alternate) > april 2004 > threads for april 22 - 28, 2004

Filter by week: 1 2 3 4 5

sybase driver
Posted by jamilahms NO[at]SPAM yahoo.com at 4/28/2004 8:20:59 PM
I am on windows xp, have installed sybase client, what driver do i need for tcp/ip connection to sybase12 sql server? For odbc, I only have Microsoft sql server driver Version 2000.81.9042.00...more >>


ISNUMERIC and CAST
Posted by dcmfan NO[at]SPAM aol.comSPNOAM at 4/28/2004 7:31:57 PM
SELECT ISNUMERIC('. ') 1 SELECT CAST('. ' AS [insert any numeric type]) Syntax error converting the varchar value '. ' to a column of data type [insert any numeric type]. Any thoughts as to why SQL Server 7.0 considers '. ' to be numeric, yet can't convert it to any numeric data t...more >>

Send email notification for Scheduled Job completion
Posted by aj70000 NO[at]SPAM hotmail.com at 4/28/2004 3:41:28 PM
Hi, I wanted to know how can we send out email notification for the Jobs that are completed. Thanks a lot in advance.... AJ...more >>

SQL Server - failure to replicate
Posted by David Macken at 4/28/2004 3:06:54 PM
After a recent crash, where tables had to be repaired we have been unable to re-instate or create new merge replication from a MS SQL 2000 system. All old publications and subscriptions have been deleted. New replications fail at the snapshot level. Anyone ideas ? *** Sent via Developersdex ht...more >>

Dynamic Cross Tab Using Cursors.
Posted by Jaidev Paruchuri at 4/28/2004 2:27:09 PM
I have two tables 1)Rollout_detail start_date Datetime, contract_date Datetime, budget_amt Money store_id int(foriegn key referring store.store_id) pan_number varchar(20) roll_id int 2)store store_id int(primary key) skey varchar(10) ...more >>

Sql maint plan not removing .trn files
Posted by GregB369 at 4/28/2004 1:57:46 PM
I have my Sql 2000 maintenance plan set to back up and then remove .bak and ..trn files after 4 days. It removes .bak fine, but not the .trn for some reason. This is ok for a while, but adventually it fills up the drive. I tried deleting and recreating the maint plan, but that didn't help. An...more >>

Output to the log file with XP_CMDSHELL
Posted by narine.kostandyan NO[at]SPAM prurealty.com at 4/28/2004 12:38:33 PM
Hi Folks, I am using an xp_cmdshell sp to start a C# app. This app downloads data files and imports them into DB. It has a logging functionality built-in and when executed from the command line or WE, it records it's progress into a log TXT file. But when executed via xp_cmdshell, it doesn't ...more >>

LINK WITH SQL SERVER
Posted by gloriarr2001 NO[at]SPAM yahoo.com.mx at 4/28/2004 12:34:47 PM
Hi, I'm doing a proyect with Visual Basic where I have to use a database that I've already made on SQL SERVER. In my computer I had to install WINDOWS 2000 family server, to be able to install SQL SERVER as server not as a client, I can see perfectly and totally the database from VB. The prob...more >>



User ID limit per database, Msg 15065
Posted by tostberg NO[at]SPAM eastmtn.com at 4/28/2004 8:39:25 AM
There appears to be a limit of ~16378 user Id's possible per database. When adding users we eventually get the message: > exec sp_adduser 'testUser', 'testUser', 'user_group' Server: Msg 15065, Level 16, State 1, Procedure sp_grantdbaccess, Line 160 All user IDs have been assigned. All of ...more >>

DB2 ODBC Error using in DTS (MDAC 2.7)
Posted by gastineau5 NO[at]SPAM comcast.net at 4/28/2004 8:17:38 AM
I'm having problems using the DB2 Connect ODBC Driver in my SQL Server 2000 DTS packages. It started occuring after installing MDAC 2.7 (which is necessary for the .NET framework). This error occurs when I try to open the transformation that uses an ODBC Connection object that is pointing to t...more >>

SQL Web Services
Posted by mattscott45 NO[at]SPAM hotmail.com at 4/28/2004 6:12:42 AM
I Need help with accessing an SQL server from a web method. Trying to connect from localhost to ms sql server 2000 sp1 and get the error: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied. at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTran...more >>

Connected to which database
Posted by Post NO[at]SPAM tophoven.net at 4/28/2004 4:02:14 AM
Hello all, I have a scripts which needs the information about the database in which it is running. How can I find out this information. For example if I want to know the User who has satrted this report, I use the SYSTEM_USER procedure. Does an equal procedure exist to find out, on wh...more >>

Performance tuning and measure on MSSQL 2000
Posted by arnie NO[at]SPAM gormur.com at 4/28/2004 2:25:50 AM
Hi I am trying to design an IO subsystem for my SQL Server and for that I need to try and predict IO activity on each table in my MSSQL Database. My idea is to move the hottest tables into special disk subsystem away from the less hotter tables. So far I have gathered that we have three tabl...more >>

Installing SQL Server 2000 Developer on Windows XP Pro
Posted by rajchoud NO[at]SPAM hotmail.com at 4/27/2004 7:23:37 PM
Hi, I'm a newbie with SQL Server 2000 Developer. I know that it is supposed to install on Windows XP Pro, but I keep running into the following message: "The logon account cannot be validated for the SQL Server service. Validate ...". I've looked for help and taken the advise of trying t...more >>

SQL 2000: Inserting multiple rows into a single table
Posted by JBSchuler NO[at]SPAM tampabay.rr.com at 4/27/2004 4:23:24 PM
To anyone that is able to help.... What I am trying to do is this. I have two tables (Orders, and OrderDetails), and my question is on the order details. I would like to set up a stored procedure that essentially inserts in the orders table the mail order, and then insert multiple orderdetails...more >>

Can I carry my existing DB users to a new server and restore???
Posted by SD at 4/27/2004 1:30:32 PM
Hi, Quick question, I have about 20 users in my local server and database. We are looking to restore that database to a new server in a new network and still be able to retain the database users. We have created all 20 logins in the new server (exact names) but when we restore the database ...more >>

Index Performance
Posted by Mansoor Azam at 4/27/2004 1:25:38 PM
I have the following table with indexes CREATE TABLE dbo.Scratch ( ItemID int IDENTITY (1, 1) NOT NULL , Login varchar (12) NOT NULL , StartDate datetime NULL , PayDate datetime NULL , LastDisconnect datetime NULL ) GO CREATE INDEX idxPayDate ON dbo.Scratch(PayDate) GO ...more >>

Open up SQL Server for central server application...
Posted by bostonpartykid NO[at]SPAM yahoo.com at 4/27/2004 1:10:33 PM
I have an application which runs in many different stores. Stores that are within a chain want to be able to share their client lists. I want to implement a sync process where each application would ping a central server every 5-10 mins to check for changes made by any other store to the clien...more >>

Need Sql statement
Posted by radha at 4/27/2004 12:16:56 PM
--Table Create table tableName (Field1 int, Field2 int) Table Data Field1 Field2 1 10 2 10 3 10 1 20 2 20 3 30 I need Like a Sql statement like 1 10 (any separato...more >>

SQL Eliminate Duplicates
Posted by jallegue NO[at]SPAM med.miami.edu at 4/27/2004 10:42:05 AM
I am working with SQL 8.00. I have the following tables TABLE ClientInfo CheckNum Account Name Addr1 City State Zip --------------------------------------------------------------------- 12345 11111 John 123 Mary St Miami FL 33139 54321 22222 Mary ...more >>

reading Transaction Log.
Posted by elham_gh NO[at]SPAM yahoo.com at 4/27/2004 8:31:49 AM
Hi, How can i read information in Transaction Log in SQL Server 2000? Thanks...more >>

Need help
Posted by bhushanvinay NO[at]SPAM mail.com at 4/27/2004 6:21:02 AM
Can we make a Index on 2 or more tables Table a: Col1 int col2 varchar Table b: Col1 int col2 varchar can you have a single index for two tables a and b on the column Col1. Is this possible in SQL-Server. As far as i know you can make an index only on one Table....more >>

Should SQL concatenation return a null value if one field is null?
Posted by John Morgan at 4/26/2004 9:30:48 PM
In an SQL statement which concatenates several fields I get a null value returned if any one of the fields are null. Is this to be expected? For example : SELECT tblMember.memberAddress + ' ' + tblMember.memberTown + ' ' + tblMember.memberCounty + ' ' + tblMember.memberPostCode + '<br> '...more >>

column update function
Posted by santoshamb NO[at]SPAM yahoo.com at 4/26/2004 7:05:00 PM
This is probably a common problem with a standard design pattern, but I'm having trouble finding the solution. I have a table with a lot of columns, for this example I'll just use three but in reality its more like 20. Create Table myTable (int col_one primary key, int col_two, varchar(20) ...more >>

Unique constraint index
Posted by Mansoor Azam at 4/26/2004 4:00:35 PM
When I add a unique key constraint to column in SQL 6.5 why does it also create an index. e.g. In the table subaccounts I added a unique key constraint for the column login and SQL creates an index with the name UQ_SubAccounts_2__19 (UKC). Does this also mean that there is no need to create a...more >>

error in recordsource after converting to sql server 2000
Posted by jaYPee at 4/26/2004 3:30:33 PM
I have converted access 97 to access xp project and connect the table from my sql server 2000. my problem is that when i run my report it says "Invalid SQL Statement. Check the server filter on the form recordsource" now this is my recordsource in my report. SELECT Students.IDNo, [LastName]...more >>

DTS from Excel to SQL?
Posted by ebug NO[at]SPAM hotmail.com at 4/26/2004 3:22:36 PM
I tried to use DTS for copying a sheet from Excel to SQL. For some reason, the last column shows up error saying source's column 5 buffer is too big.. and failed it.. is there anything that I need to watch out?...more >>

Problem When using Recordset paging
Posted by zlusc NO[at]SPAM hotmail.com at 4/26/2004 2:53:30 PM
Hi, guys, I got a problem when trying to paging the recordset. the problem is even I set the pagesize but the first page will always show all the records and the number of records that shown on the second page will always all records number minus pagesize. for example, if I have total 5 recor...more >>

Problem: Stored Procedures not completing from Web Application
Posted by mjewett_2000 NO[at]SPAM yahoo.com at 4/26/2004 12:52:01 PM
I have several stored procedures that run fine from my SQL Server database (via the exec command.), though when I call these procedures from my web application, they do not complete. I have other procedures that in fact do run fine through my web application though, so I do not believe its a fr...more >>

regarding: Least expensive way to develop SQL 7 or 2000
Posted by chchchchchanges NO[at]SPAM hotmail.com at 4/26/2004 10:47:47 AM
Hi again Sorry - I didn't mention that I want to use a SQL Server DB on a remote server -that is included in a Web Hosting package I also have MS Office Pro 2000, Visual Studio 97 and Virual Basic 6 - do any of these provide useful tools for managing a remote SQL Database? Thanks again i...more >>

Least expensive way to develop SQL 7 or 2000 Database on website?
Posted by chchchchchanges NO[at]SPAM hotmail.com at 4/26/2004 10:31:57 AM
Hi I am a web / database developer who wants to learn / practice developing websites using Active Server Pages and MS SQL 7 or MS SQL 2000 Can anybody tell me if there is an inexpensive way to do this? I already have experience using Active Server Pages, ADO and MS Access. Available ...more >>

Sum query
Posted by jim.ferris NO[at]SPAM motorola.com at 4/26/2004 9:57:26 AM
Im trying to make this into one select statement witout using variables.. declare @sum1 int declare @sum2 int declare @sum3 int select @sum1 = sum(CLIENT_PLANNED_SERVICE.TotalUnits)from client_planned_service select @sum2 = sum(RECORDED_SERVICE.UNITS) from recorded_service where (R...more >>

BackUp Quastions
Posted by acko bogicevic at 4/26/2004 8:47:03 AM
Hi everyone I have the folowing situations with my backups. With Database Maintenance Plan is created backup strategy. Full Backup is performing every day at 1.00 am. And Romove files older than: is checked on 2 days, and it's working fine. I am interested how can i perform this action with t...more >>

Index is being rebuilt
Posted by zcsessions NO[at]SPAM visionair.com at 4/26/2004 8:19:09 AM
Usually when I create an index in the Query Analyzer, no message is returned other than the command completed. But sometimes I get a message than the index is being rebuilt. I have come to ignore this message as it appears to not be an issue that needs research. I am now doing more and more in...more >>

@ local variable makes query slower?
Posted by michelletran NO[at]SPAM harmonyremote.com at 4/26/2004 7:56:49 AM
Hi all, I have a query that scans huge table consists of 8 or more millions records. The funny thing is that if I use the query with local variable, the query takes more than 1 minutes, whereas if I hard code the value into the query, it takes about 1 second. Here are the queries: WITH ...more >>

Pre-installed databases?
Posted by Kim Christensen at 4/26/2004 7:53:09 AM
After installing MS SQL Server 7 several databases appears in the database folder named: distribution, master, model, msdb, northwind, pubs and tempdb. Is it safe to delete any of those pre-installed bases? Regards Kim Christensen ...more >>

Count records when RecordSource is a Stored Procedure
Posted by laurenquantrell NO[at]SPAM hotmail.com at 4/26/2004 7:11:11 AM
I have a stored procedure named mySP that looks basically like this: Select Field1, Field2 From tblMyTable Where Field 3 = 'xyz' What I do is to populate an Access form: DoCmd.Openform "frmMyFormName" Forms!myFormName.RecordSource = "mySP" What I want to do in VBA is to open frmContinuous...more >>

local system privildges
Posted by thakwani NO[at]SPAM rediffmail.com at 4/26/2004 12:01:31 AM
I am trying to upgrade the SQL Server 6.5 on one server to SQL Server2000 on the other machine. At that time, i am getting the following error: "The local SQL Server is running under localsystem priviledges, preventing the upgrade wizard to connect to the export server." I am logged on th...more >>

Updating statistics
Posted by Sky Fly at 4/25/2004 4:03:14 AM
Hello all, I've written a stored procedure which runs OK for the first few thousand records it processes, then around about the 10,000th record it suffers a sudden and dramatic drop in performance (from about 40 records per second to about 1 per second). I've found that when this happens, ...more >>

Enterprise manager
Posted by newellx3 NO[at]SPAM satx.rr.com at 4/25/2004 1:35:40 AM
Where can I download "Enterprise Manager" I'm new to SQL....more >>

use of variables - why doesnt htis work
Posted by dwang NO[at]SPAM woodace.co.uk at 4/24/2004 12:26:36 PM
I am using SQL Server 2000 This doesn't work :- DECLARE @topnum AS INT SET @topnum = 2 SELECT TOP @topnum * FROM tblMyTable I also tried :- DECLARE @topnum AS INT SET @topnum = 2 SELECT TOP (SELECT @topnum) * FROM tblMyTable but this does :- SELECT TOP 2 * FROM tblMyTabl...more >>

Problems with 'sp_helpdb' stored procedure
Posted by eyal_goren NO[at]SPAM bmc.com at 4/24/2004 10:56:46 AM
Hi, One of our customers claims that the sp_helpdb truncates database name larger than 24 characters, the release is 7.00.1094, did any one encounter such a problem ???...more >>

What is faster? C++ vector sort or sort in database
Posted by jerryj NO[at]SPAM gmx.de at 4/24/2004 2:20:29 AM
hi there, I have to fetch values from a database and store them in a vector in my c++ application. What is faster? if i fetch the values sorted from the database with a 'order by' clause in the sql-statement or if i fetch them into the vector unsorted and sort the vector then? Thanx fo...more >>

SQL server reboots my windows 2000 machine
Posted by Dinesh Garg at 4/23/2004 9:40:40 PM
Hi, I am facing one more problem. As soon as i started the sql server first time, my windows 2000 machine reboots and i was not able to start sql server again. I had to uninstall and install again and this process repeats. Do anyone has idea about what is happening ?? Thanks a lot, Dines...more >>

Help for Trigger
Posted by Thierry Marneffe at 4/23/2004 8:57:10 PM
Hello I would like to get the content of a field based in the field Name. Suppose a table with a field Named 'LastName' for wich there is a trigger after update I store the field name in a local variable Set @ColName = 'LastName' How can I retrieve the value of the @ColName from the in...more >>

Creating database and table on MS MSQL server
Posted by Dinesh Garg at 4/23/2004 7:14:59 PM
Hi All, I want to use MS sql server edition 2000. I have installed the server. Now i want to create the database on this server with tables and triggers. Can please someone suggest me how to do this ? Thanks a lot, Dinesh ...more >>

Access Front End and SQL Server 2000 Record Level Access Control
Posted by noloader NO[at]SPAM yahoo.com at 4/23/2004 3:47:43 PM
Hello, We are using Access ADP as a front end, SQL Server 2000 as a back end. We have a customer contact database. We would like to limit certain users to only receive certain records based on Windows NT group membership. For example, Eastern Sales Group can see clients located in their re...more >>

Replication
Posted by Ben at 4/23/2004 3:02:25 PM
I have a customer who has Access databases at local sites who wants the data replicated nightly to MS-SQL Server using broadband connection. I have very limited knowledge of best practices to accomplish this reliably. Right now they are using some Java app that exports the Access data then em...more >>

Executing a reboot command from SQL
Posted by steveduke NO[at]SPAM Comcast.net at 4/23/2004 12:59:28 PM
Here is the block of the sproc that I?ve created. All lines execute fine except for the ?exec master..xp_cmdshell @reboottc?. In order to make this work from the query analyzer I had to set the MSSQLSERVER service to have the same credentials as the thin clients we are trying to shut down, tha...more >>

Upgrade to Sql 2000 with minimal downtime
Posted by scott.abe NO[at]SPAM eds.com at 4/23/2004 12:58:53 PM
Hello, I'm upgrading from SQL 7 to SQL 2000 on another box. To minimize the downtime I would like to 1) backup my sql 7 database, 2) copy it to the new box with SQL 2000 already installed, 3) restore the database on the SQL 2000 box, 4) Shutdown my sql 7 database, 5) Copy the transaction ...more >>

SQL Trigger for trimming String fields
Posted by rubem NO[at]SPAM triad-graphics.com at 4/23/2004 12:12:18 PM
greetings!! the below trigger works fine in SQL 2000 and doesn't take up much resources, it's a very simple solution to trim text fields at input in SQL. I know a lot of folks will say to create input masks at the UI level and that SQL is a restricted back-end DB, but to be quite honest I don't ...more >>

Help: Purge Table Stored Procedure
Posted by dancaron-listserv0687 NO[at]SPAM mailblocks.com at 4/23/2004 11:47:35 AM
I have to create a stored procedure to purge "x" # of records from a table. I have two tables (script below): Schedule ScheduleHistory I need to purge records out of ScheduleHistory. The problem is that the # of records that needs to be "kept" is dynamic, and stored in the Schedule table...more >>

error with linked server
Posted by webforum2000 NO[at]SPAM yahoo.com at 4/23/2004 9:31:15 AM
Hi when i try to run a query using linked servers, i get the following error. Server: Msg 125, Level 15, State 1, Line 1 Case expressions may only be nested to level 10. I do have more than 10 case statements, it works fine when it is less than 10. can anyone tell me if there is a way to h...more >>

SQL query fails
Posted by c_dito NO[at]SPAM yahoo.com at 4/23/2004 9:25:59 AM
As of about 2 months ago, sql queries on a frontpage .asp page required that the variable from the sending page be included in the query results, or the query failed. The query also seemed to become case sensitive. i.e. "select last,first,sales from names where city = '::city::'" will fail u...more >>

[QUERY] Help...
Posted by lupin_3d NO[at]SPAM libero.it at 4/23/2004 5:47:21 AM
I have 2 table: 1->Deals with ID,IDCompany,Concluded 2->DealDetail with ID,IDDeal,DateStart,DateEnd I want to extract the list of Deals with the DateStart less than Today, not concluded. the list must have this fiels: IDCompany, DateStart,DateEnd I've did this query: ------------ SELECT ...more >>

SQL daily
Posted by soal6570 NO[at]SPAM yahoo.com at 4/23/2004 2:47:10 AM
Coming from Oracle background: How do you carry thiese admin tasks in SQL 2000 Environment : Check instance availability Check listener availability Check alert log files for error messages Clean up old log files before log destination gets filled Analyze tables and indexes for bette...more >>

Replace function and regular expressions
Posted by jensendarren NO[at]SPAM hotmail.com at 4/22/2004 8:59:28 PM
Is it possible to use the REPLACE function in SQL Server 2000 so that it returns a string containing only alpha-numeric characters (much like using regular expressions)? Thank you in advance for any suggestion. Darren....more >>

SQL Server Max Record, multiple table join problems
Posted by codestar82 NO[at]SPAM hotmail.com at 4/22/2004 5:09:24 PM
Thanks in advance for you help. SQL Server 2000 I have a complex join, but a simple example will do the trick so... table1 (placement records, possibly many per case,highest ID being most recent) ---------- placementID(pk) * CaseID(fk) * OrganizationID(fk) * Name * Number table2 (Organ...more >>

License Requirements for MS-SQL 2000
Posted by rafel.coyle NO[at]SPAM pfshouston.com at 4/22/2004 2:34:24 PM
We have a win2003 server box that is using MS-SQL 2000. We have a 20 user license on this server at the present time. We have a need to allow up to 5 simultaneous additional users access to a subset of this data from our IIS server. How does this affect my current SQL Server License? We can r...more >>

Invalid Udate SQL statement DOES NOT cause error... Does anyone know why??
Posted by silviocortes NO[at]SPAM yahoo.com at 4/22/2004 1:52:08 PM
Here's my update statement: UPDATE Item1 SET reviewloop = 1, currentreviewstate=5 WHERE itemid in (SELECT itemid FROM Item2) The thing is: the table Item2 DOES NOT HAVE a field called itemid. So, I should receive an error, right? Not so.Instead, every single record in Item1 was updated...more >>

No of rows conflict in a table
Posted by John Jayaseelan at 4/22/2004 11:47:06 AM
Hi, The 'properties' option of a table through the 'Enterprise Manager' shows different no of records against the row selection through sql query analyzer. Any answers why so? Thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get r...more >>

Help with Many-to-Many-to-Many Problem
Posted by Keith at 4/22/2004 10:53:01 AM
I am having a problem creating a many-to-many-to-many type relationship. It works fine, but when I create a view to query it and test it, it does not generate the results I expected. Below if the DDL for the tables and the SQL for the view. Any help would be most appreciated. ...more >>

select * from a where (field1fromA, field2fromA) in (1,1)
Posted by bdjensen at 4/22/2004 10:21:43 AM
Hello! You can do it in Oracle, but how to do that in MS SQL. I don't whish to write select * from a where field1fromA=1 and field2fromA=2 because i want to generate (1,1) from a subselect... Thanks Bjoern ...more >>

MSDE & database moving.
Posted by bryja_klaudiusz[at]poczta[dot]fm at 4/22/2004 8:33:28 AM
Hi, How to copy database diagram (all data) to other server using only MSDE server and VS.Net Proffesional? I have no Enterprice manager. I have to move database (create on my machine) to my customer server. Is some possibilities? -- *Pozdrawiam,* Klaudiusz Bryja ...more >>

Finding out what a user did - help needed
Posted by ryanofford NO[at]SPAM hotmail.com at 4/22/2004 3:45:58 AM
We have an old database & server that is supposed to be used for reference only. Access to this is minimal and read-only. What I need to do is find out what a specific user did on a certain day. I know which user it was and I know the day, but I need to prove if they did anything on the server...more >>

migrating rows between diferents schemas
Posted by ragaza NO[at]SPAM ozu.es at 4/22/2004 12:21:01 AM
Hi: I have two diferents hosts with sql server 2000: server1, server2 with two diferents bbdd database1, database2 with two diferents schemas owner1,owner2 with the same set of tables table1,table2,table3,... these tables have fk a pk with identity columns I need pass only all rows from ser...more >>


DevelopmentNow Blog