Archived Months
January 2003
March 2003
April 2003
May 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
November 2007
April 2008


all groups > sql server programming > january 2007 > threads for wednesday january 31

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

REQ: Best practices locking, truncating, processing data dump table
Posted by Mark S. at 1/31/2007 11:57:43 PM
Hello, We have a high traffic web server farm where each server captures data and using c# bulk insert stores the data in tbDataDump (SQL Server 2005) almost every second throughout the day. I've been using a INSTEAD OF INSERT trigger to apply business rules to the data and then store t...more >>

best way to sync a table in 2 SQL Express 2005 DB's
Posted by Rotsey at 1/31/2007 10:56:18 PM
Hi, I have 2 SQL Express 2005 Databases with a table that I want to synchronise between them. The rows will be minimal. I want to know the best way to do it. I am devolopiing in .NET as well. I could do it manually in .NET code but I thought there would probably be better way. One ...more >>

image size
Posted by Jon Paal at 1/31/2007 8:50:56 PM
how do I query for size of image (bytes) stored in database field ...more >>

SQL Query Every Third Value
Posted by Joe K. at 1/31/2007 8:09:00 PM
Listed below is Table A structure and sample data with the table. I would like to create a query that would output every third value of Counter field value, each value from the Counter value could have several values for the QMC_PK value. Listed below is an example output. Please help...more >>

How to determine the backup date of a restored database.. ?
Posted by Query Builder at 1/31/2007 7:58:13 PM
Hi All, I am in a delima here. I have to a few backups restored from a set of backup file. 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 res...more >>

what is Audit logout
Posted by Roy Goldhammer at 1/31/2007 6:28:37 PM
Hello there due to performance problem i've checked the database action by the profiler. I've seen that there are a lot of actions named "Audit logout" which their duration is very big (10,000 and mutch more. there are some logout that takes over 100,000). what is this action and whay i...more >>

SqlXmlBulkLoad
Posted by Paul Wright at 1/31/2007 4:31:41 PM
I hope I found the right news group. Please advise if I need to post to a different group. --- We are using the SqlXmlBulkLoad class in C# with success. Immediately after we call SqlXmlBulkLoad.Execute(schemaFile, xmlFile), we call Path.Move(xmlFile, newFilePath) but it fails as the xm...more >>

insert into
Posted by led at 1/31/2007 3:33:05 PM
hi. i have this ASP code : mySQL= "INSERT INTO precos" mySQL= mySQL & "(ano,nm_mes,n_semana,cod_casa,inicio,fim,preco) " mySQL= mySQL & "VALUES (" & recs.Fields.Item("ano") & ",'" mySQL= mySQL & recs.Fields.Item("nm_mes") & "'," mySQL= mySQL & recs.Fields.Item("n_semana") mySQL= mySQL & "...more >>



Need help: Convert Hex to Decimal to resolved IP Address...
Posted by Roz at 1/31/2007 2:51:02 PM
Hello all. I must convert a number to an IP address. To convert it to an IP address, I must: 1. Convert the number to a hex value 2. reverse the hex bytes 3. convert the bytes from hex to decimal 4. Results in iP address Example: Program displays (-1139627840) 1. Hex value equals 0xBC12A...more >>

Getting a count from multiple columns
Posted by shah.ami NO[at]SPAM gmail.com at 1/31/2007 2:34:32 PM
I'm new to SQL Server 2005 and have a question. I have a table with the following format: Columns: ID Col_A Col_B Col_C Col_D .... (Col_X) Values: 1 Yes No No Yes 2 No Yes No No ...etc For each unique ID, I'd like to get 2 values: The number of "Yes" values (Yes_Count) and the n...more >>

Copy from one table to another
Posted by Stopher at 1/31/2007 2:34:28 PM
Hi All, I have a table I am trying to copy all the dta for a selected row into another table wih exactly the same table structure. What I have so far is: INSERT into mydestinationDB.dbo.mydestinationtable VALUES (select * from mytargettable where .....) mydestinationtable and mytargettab...more >>

Getting a count from multiple columns
Posted by shah.ami NO[at]SPAM gmail.com at 1/31/2007 2:32:46 PM
I'm new to SQL Server 2005 and have a question. I have a table with the following format: Columns: ID Col_A Col_B Col_C Col_D .... (Col_X) Values: 1 Yes No No Yes 2 No Yes No No ...etc For each unique ID, I'd like to get 2 values: The number of "Yes" values (Yes_Count) and the n...more >>

What is the syntactic significance of square brackets?
Posted by John Heitmuller at 1/31/2007 2:00:06 PM
Okay, this probably a dumb question, but what is the role of the [ ] square bracket delimiters is T-SQL syntax? They seem to be optional. But, I assume they would not be an option if there was not a reason to have them. I've searched through SQL Books Online and this news group and have not ...more >>

simple question about schemas
Posted by bajopalabra at 1/31/2007 1:59:11 PM
hi, i have the "std" and "other" schemas a user "u_std" -- for "std" schema a "u_other" -- for "other" schema and three tables : std.people --> Tom, Jerry other.people --> Lucas dbo.global --> 1,2,3 at this time, i can successfuly do this : - Select * From People ( logged with...more >>

How alter a column in a table
Posted by Michael at 1/31/2007 1:16:58 PM
Hi, I am new to Microsoft SQL. I want to use the following code to alter a table column. But it did not work. create table one ( a float NOT NULL, b varchar (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ) exec sp_help one ; alter table one alter column a {NULL} , alter column ...more >>

Database Location
Posted by Jon at 1/31/2007 12:59:34 PM
I am installing an event logging software that uses SQL Server 2005 for the database. The software uses 3 databases (primary, failover, and archive). The archive DB is the one I need help with. I wanted to figure out a way to store the archive DB on a Buffalo NAS drive that has a 1TB capacity...more >>

why??
Posted by led at 1/31/2007 12:48:32 PM
why this asp code doesn't work on sql server mysql2="UPDATE precos SET livre = 0 WHERE inicio < " & Date() the inicio field is a datetime type ...more >>

SQL Result to PDF and Email
Posted by abbamilkii at 1/31/2007 12:46:01 PM
I want to send a query result as PDF email attachment. Could any one give me an idea how to do it with out involving any client based code? I use SQL Server 2000 database. Thanks a lot for the help, abbamilkii...more >>

Database Location
Posted by Jon at 1/31/2007 12:22:50 PM
I am installing an event logging software that uses SQL Server 2005 for the database. The software uses 3 databases (primary, failover, and archive). The archive DB is the one I need help with. I wanted to figure out a way to store the archive DB on a Buffalo NAS drive that has a 1TB capacity...more >>

Create Table in SQL Server - differnt from the previous posting
Posted by Sean at 1/31/2007 12:07:18 PM
I have the following two tables in SQl Server 2005: TableA: ID Name A1 Cat1 A2 Cat2 A3 Cat3 A4 Cat4 A5 Cat5 and so on TableB: ID Value DocNum FormID A1 22 Doc1 Form1 A2 143.5 Doc1 Form1 A3 75.25 Doc1 Form1 A4 null Doc1 Form1 A1 null Doc2 Form3 A2 45 D...more >>

optional parameters
Posted by Ron at 1/31/2007 11:51:02 AM
In a Visul Basic stored procedure...how can I designate parameters as optional and provide a default value?...more >>

schema in a clr stored proc
Posted by Ron at 1/31/2007 11:50:01 AM
How can I designate the schema to use when I deploy a CLR stored proc from the Visual Studio?...more >>

Pass list to inner stored procedure
Posted by Nancy Lytle at 1/31/2007 11:47:56 AM
I am trying to create a stored procedure that will wrap around another stored procedure and pass in a list of jobID's to be used by the inside Stored procedure something like this: Outer SP (List of jobIDs, ie 27,42,99,105) This list will vary in length each time it is called Start ...more >>

problem with date as varchar
Posted by TG at 1/31/2007 10:04:06 AM
Hi! i have following table called test_Date_accident : trans_code varchar 1 nullable claim_number varchar 20 nullable adm_date varchar 8 nullable birth_date varchar 8 nullable date_accident varchar 8 nullable error_code v...more >>

Documents Database
Posted by shapper at 1/31/2007 9:26:25 AM
Hello, I need to create a database to hold documents information. 1. Basically, I need the following information for each document: Title, Description, LastUpdated, Category, Type, Url Should I create tables for Category and Type? And link them to my documents table? What t...more >>

OODB
Posted by Justin Rich at 1/31/2007 9:13:46 AM
Is there any way to store objects in SQL Server? I can get away with this using an array but id rather be able to dump an object in there.. at the very least i need to be able to store a linked list with multiple children. (hence the array) just for a frame of reference lets say there wil...more >>

How do I pass in SQL Text data to a CLR vb.net stored procedure?
Posted by Warren.Markon NO[at]SPAM uaar.net at 1/31/2007 8:50:47 AM
I have attachment files (raw binary jpg's) that I base64 encoded and stuck in a Text column in sql server 2005. I am trying to write a clr vb.net assembly stored procedure to write these files to disk instead of to the database to conserve database space. The problem I've run into is that there ...more >>

cross database stored procedures.. execution plans?
Posted by BrianFlynn at 1/31/2007 8:10:01 AM
Are there any disadvantages regarding execution plans for stored procedures that cross databases? We have a lot of similar stored procedures that we are considering storing in another database so that they don't slow down the listing of stored procedures in the main database. I want to know ...more >>

Question using max()
Posted by Andy at 1/31/2007 7:38:00 AM
We have a batch table that stores information about when our packages ran and the PK in the table is BatchKey. The table looks something like this BatchKey PackageName Date 1 A 1/1/07 2 B ...more >>

Debugging in SQL Server
Posted by abbamilkii at 1/31/2007 7:22:00 AM
How can I debug a SQL 2000 stored procedure? I have a long running loop that I want to check some values like you do in VS 2005. I currently use print. Any help is appreciated....more >>

rows change to one record
Posted by Amy at 1/31/2007 7:06:01 AM
Hi, I have a table structure like this ID ProductName Value 1 A 1.0 1 B 2.0 1 C 3.0 1 D 4.0 1 E 5.0 N...more >>

How to Export StoreProcedure ResultSet in to CSV format file using
Posted by Liyasker Samraj at 1/31/2007 6:31:03 AM
How to Export StoreProcedure ResultSet in to CSV format file using BCP Note: Here I need to call Result set StoreProcedure from another StorProcedure. ...more >>

Count of Sequential Data
Posted by David at 1/31/2007 6:14:00 AM
Hi All I have table that captures measurements and I need to determine the count of records where the measurements is the same as the previous or next measurement. The SQL Server version is 2005. eg. Return a count of 1 as Reading 1 and Reading 2 have the same measuremenst. Reading 4 i...more >>

any option in sqlserver \n'
Posted by Ramesh Subramaniyan at 1/31/2007 5:50:01 AM
is sqlserver has any option like c has '\n\ help pls ...more >>

Replication error - 'cannot enumerate the changes on subscriber'
Posted by Stephanie at 1/31/2007 1:09:00 AM
I have two server running on Microsoft Windows 2003 and Microsoft SQL 2000. Each server have 2 NIC cards, where the first NIC is connecting to the LAN and the second NIC is connecting to the other server for server alive checking purpose. These 2 NIC cards are configured with different group ...more >>


DevelopmentNow Blog