Groups | Blog | Home


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) > june 2004 > threads for june 1 - 7, 2004

Filter by week: 1 2 3 4 5

Microsoft certification test 70-229
Posted by twinkle1947 NO[at]SPAM hotmail.com at 6/7/2004 9:32:20 PM
Pls Help if somebody has taken this test...70-229(MS SQL Server 2000) I want to pass this desperately.Pls suggest some good question banks....more >>


Data script
Posted by MC at 6/7/2004 7:26:16 PM
I am writing a script to retrieve data records of MarinLif table. The problem is that i have a column MarinLif_Picture of type image so the insert is wrong in this way. How do i correct it? /*****MarinLIf TAble ********************/ DECLARE @ID INT DECLARE @typeID INT DECLARE @NAME NVA...more >>

get DB name from within stored procedure?
Posted by Bas at 6/7/2004 7:07:42 PM
Hi, Using SQL 2k SP3 I want to know if there's a way to retrieve the name of the database a stored proc is run in. For example: CREATE PROCEDURE HelloWorld AS PRINT 'Hello world, this proc is run in: ' + CAST(GetDatabaseName AS nvarchar) GO GetDatabaseName here is fictitious ofcou...more >>

Building dynamic tsql statements in a loop
Posted by stevesusenet NO[at]SPAM yahoo.com at 6/7/2004 5:54:28 PM
Hi; I would like to read a list of tables from a temp table and then do a sql statement on each table name retrieved in a loop, ie: -- snip cursor loop where cursor contains a list of tables declare @rec_count int set @rec_count = 0 exec('select @rec_count = count(myfield) from ' + @...more >>

Problem with LEFT JOIN... please help!
Posted by proflicker NO[at]SPAM hotmail.com at 6/7/2004 3:26:39 PM
Please help, below is my problem. Let's say I have 2 tables, a Products table and a Colors table that go as follow: Table Products prodID Name 1 shirt 2 tshirt 3 pants 4 jeans and Table Colors prodID Colors 1 Blue 1 Red 2 ...more >>

Duplicate Removal and Intelligent T-SQL
Posted by funkdm1 NO[at]SPAM yahoo.com at 6/7/2004 1:23:41 PM
I am looking for some T_SQL code that would help us eliminate duplicate data entry into our mailing db. Finding and removing the existing dups is not rocket science, but I am looking for a complete solution. We also want to be able to come up with a T-SQL script to be intelligent enough to kn...more >>

MSSQLSERVER service terminated unexpectedly
Posted by Bies at 6/7/2004 1:07:12 PM
HI I have server MSDE 2000 SP3 frequently server stopped, and print in log file information: 1) 17310 : SqlDumpExceptionHandler: Process 1984 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process. 2) 17311 : SQL Server is aborting. Fatal e...more >>

Deleting a record from a VIEW
Posted by erin.sebastian NO[at]SPAM cowaninsurancegroup.com at 6/7/2004 11:39:38 AM
Hi All, I am using Microsoft SQL Enterprise Manager version 8.0 and have created a view from a combination of 4 different tables. I would like to be able to go into sql and open the view and select a row and delete that row however this seem impossible right now. I am not sure if it's possible ...more >>



Need MAX from Each Group
Posted by cdunn NO[at]SPAM valverde.edu at 6/7/2004 11:22:10 AM
Hello, I have a table called 'tblCLTestScores' that holds student test scores for one particular test. Students take this same test three times on different dates, so the table contains three or fewer records for each student. The records for any given student are made distinct by the ID numb...more >>

Help with an import to SQL
Posted by TeleTech at 6/6/2004 5:18:05 PM
Hi. Please try to bear with this SQL "newbie" here ;) I am trying to figure out how to import the FCC ULS report results into a database. I believe what I need is a JOIN statement. To see the data for yourself, visit http://s91748743.onlinehome.us/wndv619_example.txt (I chose this que...more >>

Media question
Posted by mike at 6/6/2004 11:43:47 AM
Hi Folks.. I have a question i want's to make a website where people can upload media files like movies short movies of a minut or 3 max. Can i store those media files like mp3, mpg etc.. for instance in a sql-server database, or is this not wise to do? Thanx in advance.. ...more >>

Data Retrieval From Online Database - Paid Consultant Required
Posted by David Gibson at 6/6/2004 11:04:46 AM
Hi, I wonder if anyone can help with the following on a fee paying basis for the the design or development of some type of script or utility or piece of code to do the following work. I wish to retrieve some data from an online database that is in the public domain. The online database has ...more >>

Problems running Enterprise Manager and Service Manager
Posted by PF at 6/6/2004 10:04:35 AM
On one of our machines, all of the SQL Server 2000 components except for the main Server component (SQL Server core) itself were installed (Management tools, etc) a while ago and everything was running fine. Now I go and add/install the Server component and then Service Pack 3a. It seems that...more >>

Formatfile shortcut?
Posted by newtophp2000 NO[at]SPAM yahoo.com at 6/5/2004 9:32:13 PM
I was searching the group for posts on the subject of format files and I came across a message by Erland Sommarskog dated 2003-07-07 with subject line "Re: BCP Format File". In this example, he used a FORMATFILE where the "prefix length" and "host file data length" fields were both zero for all...more >>

Bulkadmin role (BULK INSERT)
Posted by newtophp2000 NO[at]SPAM yahoo.com at 6/5/2004 9:20:46 PM
Hello, I am trying to load a simple tab-delimited data file to SQL Server. I created a format file to go with it, since the data file differs from the destination table in number of columns. When I execute the query, I get an error saying that only sysadmin or bulkadmin roles are allowed t...more >>

TOUGH INSERT: Copy Sale Record/Line Items for "Duplicate" Record
Posted by maria_lowry NO[at]SPAM hotmail.com at 6/5/2004 6:19:51 PM
I have a client who needs to copy an existing sale. The problem is the Sale is made up of three tables: Sale, SaleEquipment, SaleParts. Each sale can have multiple pieces of equipment with corresponding parts, or parts without equipment. My problem in copying is when I go to copy the parts, ...more >>

question abot primary key
Posted by Bernard at 6/5/2004 12:15:08 PM
how can I set my primary key to star again from 1?? for example, if I had a table with some rows in it and I deleted all that rows, next time when I insert a new row in that table, primary key starts from last primary key of previous rows, but I want it to start again from 1. is that possible?...more >>

Very serious bug with Materialized/Indexed views and SQL server
Posted by vlidou NO[at]SPAM laposte.net at 6/5/2004 12:19:32 AM
Do not trust values returned by materialized views under SQL Server without frequently checking underlying tables!!! I already posted this message under microsoft.public.sqlserver.server and I'm amazed nobody from Microsoft answered about this problem. By inserting lots of data into our two ma...more >>

Database restore question
Posted by Andre at 6/4/2004 8:49:14 PM
Hi, I have a database (or better: used to have) and backup consisting of - the initial (complete) database - all log files since then (or so I thought) After making a data entry error I wrote the log to the backup and tried a point of time restore. Unfortunately that failed with the message ...more >>

Large Data Delete
Posted by rc at 6/4/2004 3:50:17 PM
Hi I have a SQL2000 server with 128m rows of data. I want to delete about 65m of that. So far I have bcp'ed the relevent data out and put them into another SQL database. We have a small amount of space for our transaction log so I cannot delete all 65m rows in one go. So far I have been ...more >>

Unicode in SQL queries
Posted by Silvio Lopes de Oliveira at 6/4/2004 3:38:46 PM
Hello, I use Unicode in my program to enter data in Chinese into a nvarchar field. When inserting or updating records, my application does not use Unicode escape sequences but rather the Unicode characters themselves. Thus, my app may have SQL statements like: UPDATE table SET field1 = ...more >>

Unix connectivity tools to sql sever 2000
Posted by schiang NO[at]SPAM refco.com at 6/4/2004 1:19:43 PM
Does anyone know of any shareware tools out there that can connect to sql server 2000 from Unix(specifically Sun Solaris) and perform queries and return result sets ? Appreciate your help. Steve Chiang...more >>

Table Spool\ Lazy Spool
Posted by dosberg NO[at]SPAM yahoo.com at 6/4/2004 1:12:23 PM
What causes the query optimizer to choose a table spool\lazy spool action in the execution plan? The explanation of "optimize rewinds" makes little sense because my query never comes back to that table. I'm going to have to change the query but it would be helpful if I knew what I should be t...more >>

Recordset opens as read-only -- WHY??
Posted by Silvio Lopes de Oliveira at 6/4/2004 9:10:00 AM
Hello, I have a C++ / MFC app which uses CDatabase and CRecordset to connect to a ODBC data source for a SQL Server 7 database. The application worked properly with a MySQL database, but after swapping it for SQL Server problems emerged. In particular, any calls to CRecordset::AddNew() and CR...more >>

INDEX possible for reverse wildcards?
Posted by robertbrown1971 NO[at]SPAM yahoo.com at 6/4/2004 8:59:32 AM
If I use _reverse_ wildcard search will it always result in a table scan? Is it possible to get the DB (Oracle or SQL server) to use indexes when doing reverse wildcard match? let's say I have: table email_address (id int, email varchar) with the following entries 2, www.%shoes.% 3, ...more >>

Altering SQL Server 2000 table design
Posted by dan_williams NO[at]SPAM newcross-nursing.com at 6/4/2004 8:35:16 AM
I'm trying to do a simple alteration to the table design of one of our SQL 2k tables, simply changing an identity row so that its not 'not for replication', and its taking absolutely ages to do so, and stops the sql server from working. Whilst it's attempting the update, no one can access the ...more >>

Count rows in a date interval
Posted by Dave at 6/3/2004 6:46:16 PM
I have a problem that I can't quite get started on solving. I have a table of asset statuses. Each time the asset status changes, a new row is inserted into the table. CREATE TABLE dbo.Tbl_EMStatusHistory ( EMStatusID int IDENTITY (1, 1) NOT NULL , EMSessionID int NULL , AssetID int NO...more >>

OPENDATASOURCE: text file as input ?
Posted by Jim Andersen at 6/3/2004 3:24:14 PM
Version 2000. How do I do something like the example SELECT * FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="c:\Finance\account.xls";User ID=Admin;Password=;Extended properties=Excel 5.0')...xactions but use a .txt-file instead ? I tried building it using Access (that u...more >>

WriteBak Reaktime examples
Posted by xmerino1 NO[at]SPAM hotmail.com at 6/3/2004 1:27:34 PM
Hello there: I am trying to configure an excel worksheet as an Writeback application but I want to block some cells in the page and combining cell protecion does nos alloudm to insert rew rowns...more >>

Setting maximum number of merge agents
Posted by Jim at 6/3/2004 11:23:10 AM
I have a situation with a 6 server setup whereby merge agents will not run if other merge agents are alreay running. Basically we have a 5 laptop, one tower config with the tower being the publisher. In theory we want to be able to hook a laptop up and have it sync within, say, 5 mins. Trouble i...more >>

Migrate VIEW from Access to SQLserver ???
Posted by YURYSSG at 6/3/2004 10:28:54 AM
I migrated a DB from Access 2000 to SQLserver 2000. The tables are OK, but I see the old Access views... as TABLE in SQLserver!! Any suggestions? -- ...more >>

Help with getting table information from sqlserver
Posted by Jeff Magouirk at 6/3/2004 10:25:48 AM
I am new to using sqlserver and have been given the task to get the column name, data type and the description from a given table and put this into another table. Can this be done? Thanks in advance. Jeff Magouirk ...more >>

query regarding date format
Posted by amiya_14 NO[at]SPAM rediffmail.com at 6/3/2004 9:24:21 AM
select last_name,hire_date,to_char(hire_date,'DAY') DAY from employees order by to_char(hire_date-1,'d') i wanted to know how the function to_char(hire_date-1,'d') works... its basically a query used to find the day on which a employee was hired ,also it requires that the query be sorted by t...more >>

Print list of tables with Identity row set to NOT FOR REPLICATION
Posted by dan_williams NO[at]SPAM newcross-nursing.com at 6/3/2004 9:12:57 AM
Does anyone know if there's an SQL command i can run that will list the tables in a database that have an identity column set to NOT FOR REPLICATION? Many thanks Dan Williams....more >>

Build database application on Internet with ISP?
Posted by tturner6 NO[at]SPAM hotmail.com at 6/3/2004 4:44:44 AM
I have been building ASP, ASP.NET and Crystal Reports on SQL server for a few years now. I have build them mostly on an Intranet or with companies that have their own web servers. I now need to build an application for a company that doesn't not have a web server. Just a small shop that w...more >>

Operating system error code 3(The system cannot find the path specified.).
Posted by votanloi NO[at]SPAM hotmail.com at 6/3/2004 4:13:51 AM
Hi All, I use Bulk insert to put data to myTable. When the SQL server is in local machin, it works well. But when I put the data in a sql server situated not locally, then I get a error message like this: Could not bulk insert because file 'C:\Data\2003 txtfiles\abif_20031130.txt' could n...more >>

Volltextsuche mit contains
Posted by mario NO[at]SPAM mgm.at at 6/3/2004 2:53:46 AM
Hallo! Ich habe eine Tabelle mit einem Datensatz in ein Feld den Wert 'Technaflon Nasskamine' hat. Wenn ich so Suche wir der Datensatz gefunden: Select * from namen where contains(*, '"Technaflo*"') So nicht: Select * from namen where contains(*, '"*echnaflo*"') wie finde ich den Da...more >>

SQL 6.5 with Delphi 1.0 on Win95 problem.
Posted by scottm NO[at]SPAM cland.net at 6/3/2004 2:51:46 AM
Hello, I have a situation where I have to run a Delphi 1.0 application on Win95 via ODBC to MS-SQL 6.5 server. This is working for me on several workstations. I always install 16-bit BDE and make appropriate changes to odbc*.INI files, etc. I have a machine which has just now been setup for t...more >>

NULL vs. "Unknown Value"
Posted by Marcus at 6/3/2004 1:48:16 AM
I'm running into a situation that has me adding a value of "Unknown" to a reference table. I am being pulled between two trains of thought, and was curious to get other's input on in. I give an example below. 1-) Adding "Unknown" to a reference table is bad. Doing so effectively changes the...more >>

set a attribute to random values in a given list
Posted by Ximing Zheng at 6/3/2004 12:30:08 AM
Hi, I like to have a SQL script which could update a table to set one attribute to a random value picked from a given list. The prototyping code is as below: select @value_list = ('John', 'David', 'Mathew', 'Paul') .... update EMP set emp_name = @random_name where ... where rando...more >>

Input string was not in a correct format
Posted by jim.ferris NO[at]SPAM motorola.com at 6/2/2004 10:43:33 PM
im using asp.net, C# to enter data into a table in sql server...however im getting this error: Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the ...more >>

eliminating redundant data
Posted by gordy at 6/2/2004 8:06:40 PM
edit: this came out longer than I thought, any comments about anything here is greatly appreciated. thank you for reading My system stores millions of records, each with fields like firstname, lastname, email address, city, state, zip, along with any number of user defined fields. The appli...more >>

Logging to second disk -- what happens when it crashes?
Posted by thomas-ggl-02 NO[at]SPAM data.iatn.net at 6/2/2004 4:21:59 PM
Currently we have SQL Server running on a single RAID5 array. The data and the logs are all written to this array. We don't have huge volume of activity, but it is growing. Most activity is from our website that interacts a lot with the database. We have read that it is a good idea to separate...more >>

Representing rows as columns
Posted by navvyus NO[at]SPAM yahoo.com at 6/2/2004 1:47:30 PM
Hi I have a table in SQL Server 2000 that has following data: PunchTime PunchType 11:45:00 In 12:45:00 Out 1:45:00 In 3:15:00 Out Is there a way in SQL to represent this in the following format: In Out In Out 11:45:0...more >>

Calculate Logon Duration
Posted by Joe User at 6/2/2004 12:59:11 PM
Hoping I can get some assistance with an issue I'm surprised to see is not posted more often...maybe that means it's easy? I am working with Windows NT event logs and trying to calculate the difference in logon and logoff times for the different users that have logged onto the machine..... ...more >>

Events in adp vs mdb
Posted by bnodwell NO[at]SPAM savannaenergy.com at 6/2/2004 12:53:34 PM
We've recently migrated from mdb to adp/sql server 2000. We used to have events attached to combo boxes such that when an item was chosen (change event), the event would cause another field in the same record to be set (set value macro). Now that we've migrated to adp, the event seems to tri...more >>

MSDE Maintenance Plan
Posted by Michael Nostrom at 6/2/2004 12:04:08 PM
Hello, I'm trying to configure my MSDE 2000 installation to dump all databases and transaction logs to disk every night to be backed up by our backup software. All goes great in configuring the maintenance plan until I get to the retention part. I want to configure the backup plan so that ...more >>

Count query problem :(
Posted by Jenny at 6/2/2004 11:55:27 AM
Hi all, Hope someone can help me with this ... This is my query. The problem with it is that it only returns Areas with >0 Topics. So if a new Area is created, it hasn't a topic until one is created, and it doesn't list! Is it possible to return even those rows where the count is 0, or ...more >>

accessing SQL 2000 table from within Excel
Posted by Tim at 6/2/2004 9:51:05 AM
Hi, I have a need to process a column of data and get information from SQL 2000 and return it to the Excel Spread Sheet. The data will be a list of order numbers in column 1. I need to look up each order number and return infomration relating to the order from SQL. Can anyone point me to...more >>

Comparing data in two consecutive rows from a single table
Posted by bryanguilliams NO[at]SPAM hotmail.com at 6/2/2004 9:01:56 AM
I'm trying to come up with an elegant, simple way to compare two consecutive values from the same table. For instance: SELECT TOP 2 datavalues FROM myTable ORDER BY timestamp DESC That gives me the two latest values. I want to test the rate of change of these values. If the top row is a...more >>

slow query thousands of records.
Posted by Steve at 6/2/2004 8:29:12 AM
I have a query that returns raw tick data from a table. Unfortunately after even a few days there are hundreds of thousands of rows so the following query is not efficient. SELECT * FROM RAWTICKDATA WHERE Status = 'I' AND ContractCode = ? AND RawTickID = (SELECT Max(RawTickID) FROM RAWTICKDATA...more >>

Sum question
Posted by contactmirth NO[at]SPAM yahoo.co.uk at 6/2/2004 8:25:35 AM
Hi all, Is there any obvious way to sum only certain rows. I suppose it's similar to cube or rollup but I can't get either of them to work. what I basically have is this... CREATE TABLE #TempTable ( [GLD_ACCTNG_PER] INT, [OrderNum] INT, [SummaryDescription] varchar(50), [SummaryAmoun...more >>

Is any possible to run DTS package from Command Line ?
Posted by Lucas Fang at 6/2/2004 1:09:28 AM
Hi Sir: Is any possible to run DTS package from Command Line ? Lucas ...more >>

Instances of SQL
Posted by !!bogus at 6/1/2004 10:00:12 PM
Hi, Is it possible to install more than one instance of SQL on the same server? I am thinking of the SQL that comes with Windows 2003 SBS (Small business) -- Thank you Please post only ...more >>

solve the proplems
Posted by nevis_soft NO[at]SPAM yahoo.co.in at 6/1/2004 9:13:53 PM
i am beginer in vc++.i want help in the following questions. How can i create database program using sql server through codings.If we want DSN name it also create through codings. if u have any easy sample program please sent the following mail id. nevis_soft@yahoo.co.in...more >>

DTS Import not working after SP3a upgrade
Posted by darinmiller NO[at]SPAM earthlink.net at 6/1/2004 8:22:02 PM
I have a DTS package that is importing a fixed length file. After installing SP3a (on PERSONAL & DEVELOPER edition) it will not allow me to assign more than 125 fixed length column positions. After hitting the Finish & OK button it just wipes out the column settings. I've reinstalled both Pe...more >>

Generate a normalized XML doc from SQL Server
Posted by muesliflakes NO[at]SPAM yahoo.com.au at 6/1/2004 8:15:05 PM
I'm trying to generate a normalized XML document out of SQL server that reflects the data structure of a table. Eg. This is what I would like to get <table name='MtFeedback'> <field name="MtFeedbackIy" type="int"/> <field name="Title" type="varchar" size="50"/> <field name="First...more >>

Nested Coalescing possible in SQL?
Posted by jlanfield2003 NO[at]SPAM yahoo.com at 6/1/2004 6:16:50 PM
First of all, I apologize if coalescing is not the right term to describe my problem. I have a tree where each node has the same set of attributes (is the same entity) but child nodes should inherit attribute values from parent node. for example, say I have the following table: (nodeId int ...more >>

Fundamental Functions MS SQL Server 7 or 2000 users VALUE MOST
Posted by daaa NO[at]SPAM rock.com at 6/1/2004 4:07:15 PM
Hi all, What are the fundamentals (fundamental functions) that most small to medium sized organizations that use MS SQL Server 7 or 2000 value most? What's your insight? OK, here's my biased definition of small to medium sized organization, annual revenue from 20m to 300m. Thanks. DL...more >>

Control characters output in attachments from xp_sendmail
Posted by nathan NO[at]SPAM griffiths.net at 6/1/2004 3:11:23 PM
I have been testing our SQL Mail setup in SQL Server 2000 (sp3a) and have found that when I attach results as a file, every other character is a control character which causes each real character output on a separate line. I have no idea why this is happenening, I've never seen it before. The c...more >>

Convert to Date
Posted by naughtonservice NO[at]SPAM yahoo.com at 6/1/2004 2:38:11 PM
I have a variable that I am passing to a stored procedure from a propritery software application. The variable it passes is the number of days that have passed since 1/1/1900. I cannot seem to locate a convert statement that is applicable. Any guidance would be greatly appreciated. Thanks...more >>

SQL Query - Date, between dateadd problem
Posted by raghu_akk NO[at]SPAM yahoo.com at 6/1/2004 11:33:04 AM
Hello... I am running into a problem while running a query..can some1 help.. this is the query : ************** SELECT * from Table S where S.dtDate1 BETWEEN dateadd(year,1,dateadd(month,-1,getdate())) AND dateadd(day,-1,(dateadd(month,1,dateadd(year,1,dateadd(month,-1,getdate()))))) *******...more >>

Selecting Values in CSV
Posted by Sunil Gosavi at 6/1/2004 11:26:15 AM
I have to write a master detail query, in which the detail record should be stored in a variable as Comma Seperated Values. Can anyone help me...... Sun *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

wildcards in dropping constarints
Posted by sashi_reddy NO[at]SPAM yahoo.com at 6/1/2004 11:06:20 AM
Hi, Is it possible to use wildards in SQL to drop a constraint on a table? Thanks!...more >>

Advance SQL
Posted by desmond NO[at]SPAM biztrak.com at 6/1/2004 3:56:08 AM
Dear Expert, How can I reuse the column, instead of select the whole things again. Example as below : select column1 as A, column2 as B, column3 * A as C from dummy ; in MS SQL I have to do like this, select column1 as A, column2 as B, column3 * column1 as C from...more >>

Help Required on Stored Procedure
Posted by attiq76 NO[at]SPAM yahoo.com at 6/1/2004 2:57:48 AM
Hello All, I'm trying to write a stored procedure which tracks the insert event in a Table A. When we insert something in Table A in Database 'FMDB', it inserts the same information in Table B in Database 'Wartung'. When I insert something with insert query visa SQL Query analyzer, it work...more >>

Possible Corrupt Table
Posted by paulg NO[at]SPAM wizardit.co.uk at 6/1/2004 1:50:03 AM
I have 1 table in a 200+ table database The database is Merge Synchornised and has been working fine for 2 years + The same database is at several customers and the DB is fully relational I have a table which creates client timeout errors whenever an insert or update is issued The table h...more >>


DevelopmentNow Blog