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) > january 2007

Filter by week: 1 2 3 4 5

How do I determine the backup date of a restored Database..?
Posted by Query Builder at 1/31/2007 7:59:09 PM
Hi All, I have to a few backups restored from a set of backup files. The backup files have been removed from the drive because of some storage constrains... For some data comparison reasons, I need to figure out the actual date of these backup files that is used to restore these databases. ...more >>

SQL Server 2005 order by date does not sort properly
Posted by Jer at 1/31/2007 3:44:24 PM
I am using Access 2003 as a front-end to a SQL Server 2005 database. I make design changes using SQL Server Management Studio. I have a table that includes a datetime column. I create a view and sort by the datetime field. When I initially look at the result it is sorted correctly. Then I sa...more >>

bcp and trigger: missing data in bcp out file
Posted by danceli NO[at]SPAM gmail.com at 1/31/2007 2:03:10 PM
I have made trigger on table 'FER' that would be fired if data is inserted, updated to the table. And also, I made batch file using bcp to extract the newly updated / inserted records. But I got missing data in bcp out file like this: Missing 1200 records, blocked at: /* 777946 296188 ...more >>

bcp & trigger: got missiing data in bcp out files
Posted by danceli NO[at]SPAM gmail.com at 1/31/2007 1:39:33 PM
I have a trigger 'trgTblUpdate' working on the table 'Tbl'. When the table 'Tbl' got inserted/updated data, the tigger is fired and then we use a batch file with bcp command to unload those new inserted/updated data to another server. But in bcp out file, it didn't get all new inserted/updated d...more >>

Querying towards a responsive UI
Posted by shripathikamath NO[at]SPAM gmail.com at 1/31/2007 11:04:26 AM
I realize that this may not be the correct ng for this question, and if so, I'd appreciate a pointer to the correct group. I am not including DDL/DML for this question, because I do not believe it is relevant. What I have is a SQL query, which when executed in Query Analyzer takes about 10-...more >>

urgent requirement for project leader/apm required
Posted by optionsindia at 1/30/2007 8:21:40 PM
hi, we are having urgent requirement for one of client cmmi level5 company in hyd and chennai if u r intrested send me u r updated resume gangadhar.sadhu@optionsindia.com ...more >>

BCP error - missing data
Posted by danceli NO[at]SPAM gmail.com at 1/30/2007 6:59:21 PM
After loading the BCP files that are created during the trigger/ reporting events I've noticed that the data in the table is missing records. I've also noticed that the missing records (records in the table but not in the BCP out files) seem to occur in contiguous blocks. Since the complete s...more >>

BCP error - missing data
Posted by danceli NO[at]SPAM gmail.com at 1/30/2007 6:59:12 PM
After loading the BCP files that are created during the trigger/ reporting events I've noticed that the data in the table is missing records. I've also noticed that the missing records (records in the table but not in the BCP out files) seem to occur in contiguous blocks. Since the complete s...more >>



Help With complex SELECT
Posted by SJ at 1/30/2007 4:00:24 PM
Can someone help me with an advanced query? I have two tables Table 1: Employees Cols: UID, lname, fname Table 2: StatEntry Cols: UID, Timestamp, description The queary should reaturn all the information in both tables. If more than one entry exists in the second table, it should r...more >>

SQL Server 2000 SQL Agent Error [393] Waiting for SQL Server to recover databases
Posted by Mark D Powell at 1/30/2007 1:36:58 PM
While I was out of the office the Lan Team moved one of my SQL Server 2000 servers to a new network domain. Since then the maintenance job has not ran. The error log for the SQL Agents has the message listed in the subject line. I have not found any useful articles on the MS SQL Server ...more >>

10080 sql server 2005 configuration caused error?
Posted by Jeff Kish at 1/30/2007 1:15:12 PM
Hi. I have an ancient preCambrian app that uses the db library to interface with sql server databases. It is written in c++. When testing it I noticed on one machine with sql server 2005 installed it runs fine, but on another it has some problems, notably.. it gets as a result of a selec...more >>

Update Statement
Posted by joelranck NO[at]SPAM gmail.com at 1/30/2007 1:03:55 PM
I'm trying to update an older table with some new information. Our previous systems stored US state info by their abbreviation, now have a state table and link with the appropriate state id. I would like to update the old table to our new system so set a new field called state_id to the stat...more >>

Updating online SQL 2005 database from local database
Posted by John Morgan at 1/30/2007 10:32:40 AM
I have my first small SQl Server 2005 database developed on my local server and I have also its equivalent as an online database. I wish to update the local database (using and asp.net interface) and then to upload the data (at least the amended data, but given the small size all data should ...more >>

DTS and SOAP Web Service
Posted by Trey Bean at 1/30/2007 10:27:35 AM
Hi, I have a client that needs to issue soap calls to a third-party web service from within a DTS package. Is this even possible? I've looked everywhere and found the sqlxml, but that looks like it provides a soap web service, not consumes one. Right now, we are consuming the same web ...more >>

DTs and Buisness Intellegence
Posted by DAVE at 1/30/2007 10:01:51 AM
i have a bunch of dts packages..from sql2k is there a utility to convert them to sql2005 any suggestions dave ...more >>

how to compare value of two fileds and based on that insert value into third fileds
Posted by Tradeorganizer at 1/30/2007 12:36:44 AM
Hi, I have a database with table name as test in that i have 6 colums they are name varchar (20) address varchar (20) position varchar (20) nametype1 varchar (20) nametype2 varchar (20) nameval varchar(20) now in the nametype1 and nametype2 there are values like nametype1 ...more >>

1st Image Control Shows Wrong Image
Posted by rmk at 1/29/2007 6:58:43 PM
In my asp.net application I have a local report with an image control in the detail row of the table and the Value attribute set as ="File://" & Fields!FQPhotoFileName.Value The first row in the table always shows the wrong image and it's always the same wrong image. The problem is there e...more >>

JOIN columns question???
Posted by Don Vaillancourt at 1/29/2007 12:16:39 PM
Here's an oversimplified version of a query that I'm writing and wanted to know if there are any performance differences between the two versions. select * from table_a a , table_b b where a.col_1 = b.col_1 and a.col_1 = 1000 versus select * from table_a a , table_b b where a.c...more >>

Un aiuto, per favore molto urgente!!!
Posted by e.torresi NO[at]SPAM alice.it at 1/29/2007 10:26:29 AM
Avrei questo problema devo spostare dei campi da una tabella in cui appoggio i record recuperati da un file excel in varie tabelle esterne. La tabella di appoggio contiene in totale 92 colonne da spostare in varie tabelle relazionate. In pratica dovrei fare un loop su tutti i record della tabel...more >>

intermittent OLE DB error
Posted by gelangov NO[at]SPAM hotmail.com at 1/29/2007 7:04:33 AM
I have this problem occuring intermittently: When I try to add a package to the project, and click on the Package path button. I get a oledb error x080004005 (client unable to establish connection)... After I click ok, and click on the Package path again 2 or 3 times, the error go...more >>

Storing SQL Server 2005 objects and queries in Perforce
Posted by d.grabov NO[at]SPAM gmail.com at 1/29/2007 3:48:18 AM
We are trying to use source control to store our database objects and queries in Perforce. The general idea is to produce scripts which create all objects in the DB and then store the SQL in source control. Has anyone done this before and can suggest some advice? Alternatively if anyone has ...more >>

Executing Stored Procedures
Posted by Daniel.Peaper NO[at]SPAM gmail.com at 1/29/2007 2:20:45 AM
Hi All, I am running SQL2000. Can anyone tell me how I can use the contents of a table as parameters for a stored procedure that resides on a different SQL server? I have a table: Customers: Cust_ID Cust_Name Cust_Contact Cust_Phone I need to execute a stored procedure and pass e...more >>

Making Inegration Services visible/available in SSMS 2005
Posted by John Morgan at 1/28/2007 12:37:47 PM
I have installed SQL Server Management Studio 2005 and have been finding the equivalent of the Data Transfer Services in SQLServer 2000. I think I have worked out that it is in SQL Server Integration Services but when I open File-New-Project I do not see the SQL Server Integration Services the...more >>

a q about counting
Posted by DE at 1/27/2007 10:50:20 PM
Hi, New to SQL. Got some questions about it. Suppose I have two tables. Each of them has a single column, named as c1. For table T1, I have: 1 1 1 3 3 5 7 9 For table T2, I have: 1 2 3 4 5 1 3 The exercise I want to do is to select the number of occurence in T1 for those e...more >>

Transferring databases from MSDE 2000 to SQL 2000
Posted by Bob at 1/27/2007 5:50:07 PM
Trying to transfer databases from MSDE to SQL. When I use SQL Enterprise Manager - DTS - import or export, it works for the first database, but then fails for the others. I select the to and from databases using DTS - Import - 'MS OLE DB Provider for SQL Server', then select 'Copy objects ...more >>

backup/restore of Tables ONLY (please)
Posted by javelin at 1/27/2007 4:38:14 PM
I'm having difficulty searching for an answer to this challenge. Can someone give me a clue on the right keywords to use to find a discussion on this subject? All of the ones I saw appear to touch on older versions. I'm working with SQL Server 2000, and need to backup and restore only tables...more >>

Setting recover model with TSQL
Posted by rsyring NO[at]SPAM gmail.com at 1/27/2007 11:33:16 AM
I have a TSQL script that restores a production database to my local development machine. Every time I do a restore, I have to go into Enterprise Manager and set the recover model to simple to prevent Windows XP Backup from having shadow copy problems (that is a rant in and of itself). I w...more >>

Specified SQL server not found. [SQLSTATE 42000]
Posted by ServiciosDeCiclismoDelPeru NO[at]SPAM gmail.com at 1/27/2007 6:24:38 AM
Hi, I have a Scheduled Job on my PC that runs against a Linked Server. I have scheduled the Job to run when SQL Server Agent starts and I have configured my SQL Server and SQL Server Agent to start when the OS starts. The connection to the Linked Server is via my Broadband internet connec...more >>

sql 2005 - optimization - cannot use index
Posted by Massimo at 1/26/2007 8:03:11 PM
I have a very very strange situation with a particular application and sql server 2005 enterprise. This application combines numerical data from multiple tables. User can make query over this kind of tables, can build queries with "group by" "order by" and "join", "sum, count(*) ecc. on many m...more >>

Input Paramter as part of OPENDATASOURCE
Posted by paddy_nyr at 1/26/2007 11:20:57 AM
I want to use an input parameter as my filename, but I get a synatax error message. Howerve, when I hard code the filename the proc compiles successfully. Thanks for any help. I'm using SQL Server 2005 LTR_90, LTI_ELIG_pct, LTI_REC_pct, LOW_SALARY, ...more >>

Varchar Truncation
Posted by Chris Moore at 1/26/2007 7:16:06 AM
Hello, I am attempting to write a stored procedure that builds and executes a dynamic SQL statement which can be up to 8000 characters long. Therefore, I have declared a variable of type varchar(8000) which, according to the documentation, is the maximum acceptable length of such a variable. ...more >>

The age old argument of Temp table vs Table variable
Posted by Burbletrack at 1/26/2007 5:43:42 AM
Hi All, Hope someone can help me... Im trying to highlight the advantages of using table variables as apposed to temp tables within single scope. My manager seems to believe that table variables are not advantageous because they reside in memory. He also seems to believe that temp tables d...more >>

downgrade SQL2005 to SQL2k - Unicode ANSI issue
Posted by candide_sh NO[at]SPAM yahoo.de at 1/26/2007 5:13:55 AM
Hello, I created a script with database publishing wizard to convert a SS2005 db into a SS2k db. The script has schema and data and looks very good. When I try to start the created script in SS2k-Query analyzer, I get an error like (in german) Server: Nachr.-Nr. 105, Schweregrad 15, Status ...more >>

Words suggest or spellcheck in MS SQL 2005 Express
Posted by Pacific Fox at 1/25/2007 3:38:10 PM
I am trying to recreate the same functionality Google has in regards to suggesting words (not names), when you misspell something it comes up with suggestions. We have a list of words in the database to match against. I've looked at SOUNDEX but it is not close enough, DIFFERENCE is even wor...more >>

sql server error
Posted by Josue.Barrios NO[at]SPAM gmail.com at 1/25/2007 1:34:23 PM
Hi, i'm trying to make a stored procedure and appear this error on the code, i hope somebody can help me SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE factura_detalle_data AS BEGIN SET NOCOUNT ON; DECLARE @tipo_documento VARCHAR DECLARE @documento NUMERIC DECLAR...more >>

script to copy logins and users with all permissions
Posted by Inna at 1/25/2007 11:24:06 AM
Hello all, I am looking for the script, which I believe exists already.I need to be able to populate the script for security of one database and apply it to another database, even if it is located on another server: 1. All logins which not exist have to be created and which exists ignored inclu...more >>

automatic number increment in ms sql 2005
Posted by HandersonVA at 1/24/2007 2:42:34 PM
will it be possible to increase number as below automatically 00000001 00000002 00000003 .... whenever the row is inserted, number will be increased like above format. which data type should I select and do some other setting to record like that? thanks ...more >>

Paging records on SQL server using derived tables
Posted by rbg at 1/24/2007 12:23:50 PM
I am using derived tables to Page data on the SQL Server side. I used this link as my mentor for doing paging on the SQL Serverhttp://msdn2.microsoft.com/en-us/library/ms979197.aspx I wanted to use USER PAGING, thus I used the following code: CREATE PROCEDURE UserPaging ( @currentPage int ...more >>

Things I didn't know until today
Posted by amaxen at 1/24/2007 12:13:34 PM
You can use a Select top @variable in sql server 2005: Thus: --'Throttle' the result set: Select Top (@MaxBatchSize) KeyID , LId , ArrivalDt , CaptureDt , Lat , Long From GPSData Order By CaptureDt Desc Makes messing with Set Rowcount *so* redundant :-) ...more >>

Difference between Enterprise Manager and Query Analyzer
Posted by chudson007 NO[at]SPAM hotmail.com at 1/24/2007 5:37:41 AM
Hi All, What are the pros and cons between using Enterprise Manager or Query Analyzer for my queries. Currently I use Enterprise Manager because I prefer the interface and only use Query Analayzer when queries time out in Enterprise Manager, but I'm sure there must be more to it. Regards...more >>

DROP Database sql server 2000
Posted by shark at 1/23/2007 11:46:24 PM
Hi, i have two servers. database A on server A . database A on server B (both sql server 2000 - both same d/b - server B being the standy by).if i delete databse A on server Ai have to deleted the standyby copy on server B. can anybody please guide me as to how to do this. Thanks, Shark...more >>

DTS question reguarding text import and tranformation
Posted by lwhite at 1/23/2007 4:55:52 PM
MS SQL 2000 sp4 on WinXp Pro SP2 I am very new to this so please let me know what I can do to make it easier for you to understand the problem. I have a non delimited text file. This text file has several columns that for the most part are fixed length but.. The fixed format starts with...more >>

SELECT statement - How to not get column field names?
Posted by Billy at 1/23/2007 4:43:05 PM
I do a SELECT * from table command in an ASP page to build a text file out on our server, but the export is not to allow a field name rows of records. The first thing I get is a row with all the field names. Why do these come in if they are not part of the table records? How do I eliminate this ...more >>

Turning Rows into Columns
Posted by markjerz NO[at]SPAM googlemail.com at 1/23/2007 8:21:21 AM
Say I have a table of data containing something like Region | County | Year | Month | Value for some sort of value (int). I want to re-arrange this data so that it comes out like this: Region | County | Year | J | F | M | A | M | J | J | A | S | O | N | D where the letters are obviously...more >>

list all tables in master
Posted by plmanikandan NO[at]SPAM gmail.com at 1/23/2007 7:03:03 AM
Hi, I need to list all the tables in northwind database. I'm using sql server 2000. In query analyser i'm in master database. I don't want to change the database to northwind. How to list all the tables in northwind database when the database combobox has master in query analyser. I want to r...more >>

How to get last records in grouped query.
Posted by schapopa at 1/23/2007 6:57:11 AM
Hi, I want to create query where I could group records by quarters, and get the last record in each group. e.g Create Table MyTable ( Value [float], date[datetime] ) Insert into MyTable (value, [date]) values (100, '1-1-2000') Insert into MyTable (value, [date]) values (110, '1-2-2000') ...more >>

Issue with DB on particular machine
Posted by Paul at 1/23/2007 2:05:14 AM
Hi, I am at a bit of a loss about what to do with a problem I am having. I have a 7GB database, loaded on to SQL Server 2000 SP4 on 2 different machines. Machines have following specs: 1) Intel Pentium 4 Dual Core 3.40 GHz, 3 GB RAM, 2GBb RAM available to SQL Server. Windows 2003 SP1 2)...more >>

Problem with view
Posted by Chris at 1/22/2007 3:34:22 PM
I am trying to create a view that creates a mailing list from two different tables. The t-sql code executes successfully but when I try to open the view I get this error message [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type vchar to float. Here is the t-sql code I ...more >>

updating two tables
Posted by thomanjl at 1/22/2007 9:40:57 AM
Okay, here is my issue: I have an access program that tracks the location of certain items. When the items are moved their record will be added with transfer information. So, there are two tables: tblContents and tblTransfer tblContents holds all the relevant information about each item as...more >>

UDF and persisted column
Posted by SQLMan_25 at 1/22/2007 6:37:11 AM
Hi All, I am trying to create a user defined function that fetches the price of an item. I have written a scalar function that takes itemid and returns its price. Simple version of tables would be like this: Item( itemid int,--pk price decimal(18,4) ) item_detail( redid int , --pk i...more >>


DevelopmentNow Blog