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) > october 2004 > threads for october 22 - 28, 2004

Filter by week: 1 2 3 4 5

Alternative to this clumsy effort?
Posted by drmcl NO[at]SPAM drmcl.free-online.co.uk at 10/28/2004 3:26:45 PM
I have a little problem that I think I solved with a sledge-hammer and thought I'd post here to see if there was not perhaps a more elegant and probably quicker solution. Essentially I have a unique display condition on a table that must return data in a certain way. The problem column in quest...more >>


help needed converting C float value to DBNUMERIC ...
Posted by Giovanni Azua at 10/28/2004 2:30:39 PM
Hello all, I need to return back to TSQL two numeric values from an Extended Stored Procedure developed in C. As result my C dll program produces two float values, the TSQL side expects to have exactly: numeric(10, 5) and numeric. Given that the structure to fill-up is DBNUMERIC defined as...more >>

Partitioned view broken after moving table to new filegroup
Posted by tom_hummel NO[at]SPAM hotmail.com at 10/28/2004 12:52:08 PM
I am using SQL Server 2000, SP3. I created an updatable partitioned view awhile ago and it has been running smoothly for some time. The partition is on a DATETIME column and it is partitioned by month. Each month a stored procedure is scheduled that creates the new month's table, and alters th...more >>

encrypt(string) Question!!
Posted by rrey2279 NO[at]SPAM aol.com at 10/28/2004 9:01:08 AM
SQL Server 2000: ######################################################## I run the following as a normal query from Analyzer: ######################################################## SELECT encrypt(user_password) FROM emp WHERE user_id = 1 ################################################...more >>

location coordinates query
Posted by John Paine at 10/28/2004 8:06:52 AM
Hi All, I've been struggling with how best to define a query to get a list of unique coordinates from a database table and my SQL skills are not good enough to work out a good solution. The basic table structure is as follows: CREATE TABLE [Readings Data Table] ( CY DOUBLE, PY DOUBLE, ...more >>

DTS - help
Posted by gelangov NO[at]SPAM hotmail.com at 10/28/2004 7:21:20 AM
Create a table (each time different table) – we have a DTS to do that -- 1 There is a fixed delimited text file; we need to Import this file into the created table above and we have another DTS to do that. –2 We want to combine these two DTS into one. The problem is when the table does no...more >>

Transaction log file too early to apply
Posted by watuni2000 NO[at]SPAM yahoo.co.nz at 10/28/2004 7:18:04 AM
Hi I implement a manual standby by backing up Transaction log files every hour and database nightly and restoring these on a standby server. Every thing works fine but the Transaction log restore fail with error listed I am sure the database backup finishes before the transaction log backups...more >>

SET options have incorrect settings: 'ARITHABORT'
Posted by iqbalkotwal NO[at]SPAM hotmail.com at 10/28/2004 6:43:57 AM
Hi, I am getting the following error when I run a stored procedure in which I am inserting/deleting data from a view that selects from a remote table. INSERT failed because the following SET options have incorrect settings: 'ARITHABORT' The first statement in the stored procedure is 'set...more >>



odbc index problem
Posted by thew NO[at]SPAM ltons.freeserve.co.uk at 10/28/2004 2:10:42 AM
Hi all, Here is a brief description of a problem I encountered, and how I found a work around after 3 long days. I have a VB6 app that uses ADO and ODBC to get communicate with SQL server 2000 (sp3, running in win2003). Everything was running great for a few weeks, but one day an update st...more >>

Any MS SQL server driver for JDBC for window NT ?
Posted by 01512244d NO[at]SPAM polyu.edu.hk at 10/27/2004 8:26:10 PM
Dear all, Any MS SQL server driver for JDBC for window NT ? Thanks for reply. Victoria...more >>

Extended Stored Procedure problem (srv_describe function)...
Posted by Giovanni Azua at 10/27/2004 4:44:16 PM
Hello all, I have spend quite some time now but don't manage to find out how to have the srv_describe function working properly for target NUMERIC(x,x) and NUMERIC types. Already tried several alternatives like e.g. // ... PVOID pvdata1; strcpy((char*)pvdata1, "12345.6789");...more >>

Character Field Formats
Posted by csomberg NO[at]SPAM dwr.com at 10/27/2004 1:25:38 PM
I was wondering what everyone felt about the fomats in character fields where the front end application accepts anything. I wouldn't want a customer table where the customer name was lower case on one, upper on another and who knows on the third. If character fields are not consistent, then ...more >>

SQL buffer size
Posted by Rudi W at 10/27/2004 10:45:21 AM
Hi there Anybody know how to increase the MS SQL server buffer size? I get an error when trying so insert some pictures as OLE objects. When transfering to the server i get an error, that the buffer sizes needs to be increased. Regards Rudi W....more >>

query help
Posted by parth_ai NO[at]SPAM yahoo.com at 10/27/2004 10:34:55 AM
I have the following table - Name Enrolment# File# x 422 011 y 421 022 z 444 023 a 345 024 I have to produce the following table - S.No Name Enrolment# File# 1 a 345 024 2 y 421 ...more >>

Not applying the initial snapshot when setting up Tran Repl.
Posted by alan.frush NO[at]SPAM healthtrio.com at 10/27/2004 9:28:39 AM
I am setting up a combination of transactional and merge replication on a very large database and do not want to apply the initial snapshot since this would take to long. I am doing this with scripts that were previosly created when the database was not this big. I want to copy the publisher D...more >>

Updating from a Text File?
Posted by steveosit NO[at]SPAM gmail.com at 10/27/2004 8:44:29 AM
Hi All, I'm not that great with MS-SQL, as I never really have any occasion to use it. However, I need to get this one thing working and don't have a clue where to start. I have a comma-delimited file that's delivered to the server every night that contains updates to one of the tables. I...more >>

inserting data into a database alphabetically
Posted by mdavis0307 NO[at]SPAM sbcglobal.net at 10/27/2004 6:12:08 AM
Hello, is it possible to insert new data into a datbase alphabetically? For example when a user enters a new row of data, I want the row inserted in the correct order. I do not think this is possible. Thank you for the help!...more >>

JDBC for MS SQL server
Posted by 01512244d NO[at]SPAM polyu.edu.hk at 10/27/2004 3:19:36 AM
Dear all, Where can I find JDBC for MS SQL server? Thx for reply. Victoria...more >>

Stored Procedure Source Control
Posted by karlbutcher NO[at]SPAM gmail.com at 10/27/2004 2:50:05 AM
Hi, I am trying to put SQL Server Stored Procedures into Sourcesafe as per the Microsoft Knowledge Base article 818368, but have run into a problem. The web server is SQL Server 2000 running on Windows 2003 Server. The client dev environment is Visual Studio 2003 Enterprise Developer Edition...more >>

String Manipulation SQL
Posted by justkule NO[at]SPAM yahoo.com at 10/27/2004 12:14:28 AM
We have some rows that we need to do some tricky string manipulation on. We have a UserID column which has userid entries in the format firstname.lastname and i need to change each entry to lastname.firstname Can this be done by some script? Thanks so much for your help. Sid...more >>

Connection problems
Posted by William F. O'Neill at 10/26/2004 9:10:26 PM
Am working on a SQL Server 2000 db with Powerbuilder 8 as the frontend. For months our endusers connected thru the SQL Server native driver for version 6. Now, have just ported the application to Powerbuilder 10, and I understand that the native drivers for SQL Server 2000 no longer exist in...more >>

Output Parameters versus Recordsets in Stored Procedures
Posted by Darter Dan at 10/26/2004 6:17:35 PM
I've read that stored procedures should use output parameters instead of recordsets where possible for best efficiency. Unfortunately I need to quantify this with some hard data and I'm not sure which counters to use. Should I be looking at the SQL Server memory counters or something else. ...more >>

SQL 2000: Users, Roles, Permissions management
Posted by littletinymonkey NO[at]SPAM hotmail.com at 10/26/2004 2:43:11 PM
I am in need of a utility (stored procedure, third party app, etc) that will help streamline the process of managing and auditing object permissions, users and roles on multiple sql server 2000 instances with multiple databases on each instance. That's a quick overview of what I need, do I need ...more >>

sql server transaction logs
Posted by afsinclair NO[at]SPAM optonline.net at 10/26/2004 1:49:05 PM
I recently performed an SQL server 2000 installation. Other than placing the program files on C: and data on D:, I saw no option to install transaction logs in an alternate location. What is the best practice with SQL server 2000 for location of transaction logs? I remember that Microsoft us...more >>

VLDB Replication or Dev Copy
Posted by csomberg NO[at]SPAM dwr.com at 10/26/2004 12:18:39 PM
I have a production database that is in the low gigabyte size and growing steadily. No issue there. I wish to completely refresh the development database daily on a second server. What is going to be the fastest easiest way to do this with hindering performance on the production system ? Th...more >>

behavior of SQL on joined queries
Posted by Metal Dave at 10/26/2004 12:12:37 PM
Hi all, Currently our product has a setup that stores information about transactions in a transaction table. Additionally, certain transactions pertain to specific people, and extra information is stored in another table. So for good or ill, things look like this right now: create table ...more >>

datetime JDBC date conversion
Posted by kmilburn NO[at]SPAM austin.rr.com at 10/26/2004 11:50:45 AM
I am writing a datetime field value to MS SQL Server 7 in the following manner via a stored procedure: // item to be written is originally a java.util.Date object java.util.Date fromDate; // I'm inserting it here into the database cstmt.setTimestamp(8, new Timestamp(fromDate.getTime())); ...more >>

Checking the type of a variable in SQL
Posted by ramziabb NO[at]SPAM gmail.com at 10/26/2004 11:46:03 AM
Is there a way to check the type of a variable in SQL? I want to know if a variable is a float or a string. Thanks, Ramzi...more >>

Moving a database between two SQL Server with different patch levels
Posted by giovanni.clayden NO[at]SPAM lstrillium.com at 10/26/2004 8:57:41 AM
Hi, I need to move a database from an instance running SQL Server 2000 SP3 to another running SQL Server 2000 SP2. Can I just use backup/restore or detach/reattach and let SQL server take care of any downgrading (if any). Many thanks Giovanni...more >>

please help
Posted by kalikoi NO[at]SPAM yahoo.com at 10/26/2004 4:58:29 AM
if i query like select * from table1 then i will get the following **************************************************** Ticker col2 col3 col4 col5 ---------------------------------------------------- BRK.A 2003-05-02 70400.00 0.00 78500.00 FARM 2003-05-02 326.25 3.60 370.99 ...more >>

variable scoping problem
Posted by Robert at 10/25/2004 10:08:17 PM
Greetings I have been trying to write a script that will list out the size of each user table in a specified DB. I am running into a scoping problem when trying to format my display. I am sure there are several ways to derive the results. My method won't allow me to select count(*) f...more >>

Storing Documents and Images - In the database or as a link?
Posted by Dave Smithz at 10/25/2004 8:49:31 PM
Hi There, Being quite new to MS-SQL I would like to ask if there is a general opinion of what approach should be taken to storing things like external documents and images in databases. Should the actual files be stored within the database, or instead should links to the files on a file ser...more >>

Indexed Views - Group By Redundancy
Posted by chrisrath NO[at]SPAM aol.com at 10/25/2004 8:25:49 PM
I have a table that I want to have a precalulcate length on a character field and group and sum up. Thought I could do this by creating a view with a group by clause that includes the sum function. Unfortunately, the compiler complains with: A clustered index cannot be created on the view...more >>

rating system
Posted by landofjeremy NO[at]SPAM gmail.com at 10/25/2004 7:07:19 PM
this is probably a simple sql solution, but i could use some help. i've got one table that has rows of documents, and another table with any number of ratings for each of the documents. The rating table is linked with an id column. the issue i am running up against is returning a single average ...more >>

Convert MySQL script to SQL Server script
Posted by Wes Graves at 10/25/2004 6:47:19 PM
Hi there, I have a few MySQL scripts that I need to run in SQL Server. However the syntax is just slightly different and I was wondering if there is a tool out there that can quickly convert these scripts so that they will work with SQL Server? Anyone have any ideas (other than manually co...more >>

SQL Query Help
Posted by gary_brunton NO[at]SPAM hotmail.com at 10/25/2004 5:37:22 PM
Assume I have the two following tables: Employee --------- ID HoursWorked Contract ---------------------------------- 1 50.0 01 Fund -------- FundType Rate EmployeeID ------------------------------------- HW 4.3 1 ...more >>

Execute without Insert
Posted by harlan NO[at]SPAM elementalcomponents.com at 10/25/2004 1:40:57 PM
Is there a way to let an account have execute permission on a stored procedure but not let that stored procedure run insert , delete, or update records. Basically only let them run or create stored procedures that do selects....more >>

records won't delete
Posted by alloowishus NO[at]SPAM yahoo.com at 10/25/2004 12:52:51 PM
I have some records that will not delete, whenever I run a delete statement in the Query analyzer, it never completes the statement, and I am only deleting one record at a time. Can anyone tell me why a record wouldn't delete?...more >>

Updating text fields
Posted by chrispycrunch NO[at]SPAM gmail.com at 10/25/2004 11:54:47 AM
I am trying to update text fields where the field only has the value "closed." So a field that has closed and anything else will not be updated. update dbo.Hist set dbo.Hist.Notes = '' FROM dbo.Hist WHERE (Notes LIKE 'closed_') update dbo.Hist set dbo.Hist.Notes = '' FROM ...more >>

SQL Server to Oracle
Posted by jthurlow NO[at]SPAM lablite.com at 10/25/2004 8:41:18 AM
Hello, Well unfortunately, I have to get an Oracle back end working with my product and am having a hard time doing it. I was wondering if anyone has had the same experience and could give me a little insight into what I am doing wrong (if anything). I installed Oracle 10g on a machine whic...more >>

help with celko's tree model
Posted by zzzxtreme NO[at]SPAM yahoo.com at 10/24/2004 11:04:40 PM
hello i have implemented joe celko's model to store heirarchy and it works well and nice i have a question about SQL this is the actual table member side left right ------------------------------------------ nancy L 1 36 andrew L 4 ...more >>

String or binary data would be truncated error
Posted by RDRaider at 10/24/2004 9:38:58 PM
How can I find which record(s) cause this error: Server: Msg 8152, Level 16, State 9, Line 1 String or binary data would be truncated. The statement has been terminated. I have tried Profiler but I can't get it to tell me which records are causing the error. Here's the script I'm running: ...more >>

Everyone can see the Master database?
Posted by Karim at 10/24/2004 4:48:16 PM
I installed SQL Server, created a database for a sql server user and noticed that the user has access to the master database even though the checkbox for master database for the user login is not checked. They can list sysusers and find out all the names. They can list all the databases as wel...more >>

Looking for tools to monitor sql and applications
Posted by reg NO[at]SPAM yahoo.com at 10/24/2004 5:54:19 AM
I am looking for the right tools to do application monitoring. I'm hoping to find one single tool that can do the entire job but if it does not exist then a few monitoring apps would do as well. I need the ability to do the standard things like testing for ping, checking for windows...more >>

Multi Value Values in Varchar field, to show each value separately in a view
Posted by i.akram NO[at]SPAM weir.co.uk at 10/24/2004 3:52:10 AM
Hi there Got a interesting problem (depends on a point of view.....). Background :- Agent (within Domino) is run daily basis which extracts data from Domino Notes application to SQL Server 2000 database. Agent first removes ALL contents and then appends ALL data. Reporting Tool is SQL ...more >>

Newbie problem: Saving a view from a linked server won't work
Posted by at 10/23/2004 7:51:00 PM
Hi. I've created a linked server to Oracle 8i. I want to save a view as follows: SELECT * FROM ORACLE8I..SCOTT.EMP EMP_1 From SQL Query Analyser, this returns a nice set or records. Running this from the view designer also returns a nice result. However, if I try to to s...more >>

"Show Execution Plan" and misleading query costs...
Posted by LemonSmasher NO[at]SPAM hotmail.com at 10/23/2004 4:10:12 PM
Hi All, I'm a relative newbie to SQL Server, so please forgive me if this is a daft question... When I set "Show Execution Plan" on in Query Analyzer, and execute a (fairly complex) sproc, I note that a particular query is reported as having a query cost of "71% relative to the batch" - how...more >>

MSDE version
Posted by SQL Server at 10/22/2004 4:37:56 PM
Hi, How do I determine what version of the MSDE running on a server. I want to know if SP3a has been applied. Thanks. Egbon *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Conversion of Oracle Version 0-1 from DEC Machine
Posted by swalker NO[at]SPAM ainet.com at 10/22/2004 11:56:52 AM
Hi... Have a customer who's running version 1 of oracle on a DEC machine.. is there a driver out there for that stuff? How might one get the data from the DEC machine to Sql Server 2000???? All I have now are fdl/sfl files. thanks in advance. Steve...more >>

SQL Server administration tools
Posted by Johnny at 10/22/2004 11:49:58 AM
I'm searching for some alternate administration tool (permisions, rights, etc.) on sql server, something not so complicated as default. Does anyone have some info about that? Thanks Pete ...more >>

New IBM Laptop running SQL server cannot connect to another sql server on network
Posted by cullentw2000 NO[at]SPAM yahoo.com at 10/22/2004 10:26:45 AM
I am trying to connect a new LBM Laptop to an SQL server on the network and I get "test connection failed because of an error in initializing provider, [dbnetlib][connectionopren(connect()),] SQL server does not exist or access denied. The laptom has sql server running on it locally and I am t...more >>

reduce databse size
Posted by Fred at 10/22/2004 9:41:48 AM
Hi, my database size has grown out of control and I need help with the following issues. (I am very new to databases) I am storing financial tick data in one of the tables and after two months the database has grown to 30GB. I do not need a permanent record of this tick data after it has been ...more >>

too many admins
Posted by ir_don NO[at]SPAM yahoo.com at 10/22/2004 8:01:57 AM
I need to make a tigger on some tables that diffrent ppl have Admin access to them using Ent-Manger. is there a way to store the current windows login user-name in to a log Table ?? the problem is all our IT dep have admin access to this database and I noticed that some tables are missin...more >>

SQL 2000 Caculation
Posted by boese.c NO[at]SPAM maplan.com at 10/22/2004 7:09:33 AM
Is there a way in SQL manager to have 2 columns multiply each other in another column? I have a quantity column and an each column and I want to value of those to field to be multiplied in a column call total. Is that possible?? Thanks Chad...more >>

urgent deliverable
Posted by kalikoi NO[at]SPAM yahoo.com at 10/22/2004 12:50:43 AM
hello everybody, I'am new to SQLServer.I have records from table as follows. column1 column2 column3 column4 column5 -------- ------------------- ------- ------ --------- Y 2004-02-17 00:00:00.000 0.00 152.70 0.00 0.00 WSC 2004-02-17 00:00:00.000 1.34 285...more >>


DevelopmentNow Blog