Archived Months
March 2003
April 2003
May 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 (microsoft) > december 2004

Filter by week: 1 2 3 4 5

Any way to make a field larger then 4000 characters?
Posted by tdmailbox NO[at]SPAM yahoo.com at 12/29/2004 5:55:13 PM
Is there any way to make a field larger then the 4000 characters that nvarchar allows? ...more >>


Binary Saved as Characters
Posted by Dan at 12/29/2004 4:35:50 PM
Greetings, I have been asked to convert a decimal value to hexadecimal and store the hex characters as a string. I can convert to binary(hex) just fine using an int to binary casting, but when I convert it to a char string, it shows only the funky binary characters (+ =D0=BB). For example....more >>

Error selecting text from a SQL database
Posted by mageos at 12/23/2004 8:49:31 PM
Hello, I have an application that used an access database and I am currently migrating to SQL Server. The software is designed to use Odbc object found in the .Net framework version 1.1. I have a simple select statement that is driving me nuts. It works fine with the Access databases b...more >>

Access Project - cannot edit SQL Server records if create the table in project
Posted by A C at 12/22/2004 3:48:57 PM
Hi We have Access Project as the front end for a SQL Server database. If we create a table from within MS Access it appears in SQL Server, but we cannot edit/add/delete the records in this table from within the MS Access project. If we open the table from within SQL Server we are able to edit...more >>

environmental variable
Posted by Hemo_jr at 12/21/2004 3:26:12 PM
I would like to reference the environmental variable %temp% from xp_sendmail. Specifically, I would like to attach a file from the directory specified by the %temp% variable. exec xp_sendmail .... @attach = '%temp%\filename' gives me an "xp_sendmail: failed with mail error 0x80004005" e...more >>

Inserting into a TempDB table via a stored Proc
Posted by NonNB at 12/21/2004 5:49:33 AM
Hi Is there a way in MS SQL 2000 to insert the results of a Sproc into a #temp table without having to create it up front ? e.g. instead of Create table #tmp(ID INT) insert into #tmp exec dbo.myProc (where dbo.myProc returns several rows of a single INT field) do something like ...more >>

Need help in avoiding cursors
Posted by Bryan Bullard at 12/20/2004 11:29:29 PM
Hi, I have this query that summarizes curtain types of "transaction" records in a table called "transactions". The summary table called "resultset" contains foreign key column in transactions called "transaction_id" and a column called "gift_number" which represent the chronological order of ...more >>

Using a view in a stored proc
Posted by mkerrigan NO[at]SPAM ktoys.com at 12/20/2004 9:52:46 AM
I have about 30 stored procedures that are using the same SELECT statement (but doing different things with it). Would it hurt performance significantly if I created a view for this statement and have the stored proc's reference the view? You can imagine what is involved when the SELECT statem...more >>



Setting Table dynamically
Posted by shop NO[at]SPAM pacifictabla.com at 12/20/2004 7:15:11 AM
Hi: I have a DTS package that first brings in data from another database into SQL Server. In the source database, the database tables are like this: TableName20041014 for example. At any one time, 10 of these tables are in the source database, every day the oldest one is deleted, i.e.: ...more >>

Batch with cursor successful, but not really
Posted by shop NO[at]SPAM pacifictabla.com at 12/20/2004 7:04:19 AM
Hi: When working in Query Analyzer, I was working executing different code in different batches. I noticed that if I executed the same batch twice in a row, the second time it would complete immediately (and say it was successful), but it wouldn't actually do anything. The same would happen i...more >>

Sql users are redirected to wrong databases
Posted by Murtix Van Basten at 12/19/2004 9:45:20 PM
Hi, I am not sure if this would be the right heading for the question but, this is something I haven't faced before. In a mssql 2000 sp3 server has around 30 users and 30 databases. Each user is a dbowner of an individual database. There is not any user owns two or more database in t...more >>

Help needed in Sql query
Posted by falconsoon NO[at]SPAM hotmail.com at 12/18/2004 9:28:18 AM
I have 2 tables as follow:- Table1 ParticipantNo GPartiNo 1 1 1 2 1 3 2 1 2 2 Table2 ParticipantNo GPartiNo 1 1 1 3 2 2 I need a query that can return rows from Table1...more >>

Replication Question
Posted by Chuck Insight at 12/16/2004 9:05:21 PM
Hi All; I am brand new to SQL Server, and have reluctantly inherited the responsibility of configuring SQL so that it can upload stuff from our local database onto the one our hosted web site. My main question involves identifying it as a server. How (give me all the juicy details) should...more >>

how to compare two tables
Posted by Nancy Drew at 12/16/2004 1:23:56 PM
is there an sql statement i can run that shows me only records that aren't identical between two tables? tks ...more >>

MySQL? SQL Server? Differences?
Posted by gglave NO[at]SPAM softtracks.com at 12/16/2004 1:19:55 PM
Hey there, I'm curious about MySQL. Could anyone quickly summarize the differences between MySQL and SQL Server and outline why someone might pick SQL Server over MySQL? (Please post replies here, email address is fake) Cheers, Geoff Glave in Vancouver, Canada ...more >>

Calendar recurring events logic
Posted by Shabam at 12/16/2004 1:50:27 AM
I'm having a calendar feature developed whereby users can add recurring events. These recurring events can have start and end dates, meaning they will recur only within a date range. For instance, user A creates an event that recurs every Tuesday, from 1/1/05 - 3/2/06. The developer has deci...more >>

SQL Server acting like a virtual disk drive
Posted by Bill at 12/15/2004 4:44:18 PM
I'm looking to store an actual disk structure in a SQL server, and have it mapped to an actual drive that a user would have a hard time knowing it's anything but an extra hard drive. My problem is this. I have to be able to replicate a file structure to remote, unattached users. I was envi...more >>

database filling percentage
Posted by germain_f NO[at]SPAM hotmail.com at 12/15/2004 1:51:54 AM
hi, newbie question, How can I get the database filling percentage. ie the database is 56% full. using sql server 7.0 thanks...more >>

Convert rows into one field.
Posted by Andy at 12/14/2004 1:27:24 PM
Hello All, I have a row of numbers returned from a query that I need turned into a single field for grouping purposes. I was wondering if you know of a way to do that. So if my return record set from select MyIDs from v_Ordersinprocessdetails where id = 57 and job = 56955 and mijoid = 2260 ...more >>

Performance Issues With Query
Posted by shop NO[at]SPAM pacifictabla.com at 12/14/2004 9:50:47 AM
Hi: I have a DTS package that does the following: 1. Data Pump: Grabs a table from a Sybase database, all fields and all records, and puts it in SQL Table 1. 2. Data Pump: Selects only certain records and puts them in a particular order, writes this to SQL Table 2. 3. SQL Task: SQL Code to...more >>

Changing SQL Server's Service Account
Posted by Jason Dean at 12/13/2004 5:25:47 PM
Hello, I recently built an ASP.NET app that uses a stored procedure with the xp_cmdshell to execute a few DOS commands on another servers hard drive. The server I need access to is another machine on my network. For simplicity's sake, here's an example: exec master..xp_cmdshell 'echo "h...more >>

ODBC connection error
Posted by Bill at 12/13/2004 2:46:40 PM
Does anyone have any idea why I would be getting this error INTERMITTENTLY? What is the best way to troubleshoot it? Connection Failed SQLState: 01000 SQL Server Error: 53 [Microsoft][OBDC SQL Server Driver][DBNETLIB]Connection Open (Connect()). Connection Failed: SQLState: 08001 SQL Serv...more >>

Collate que se aplique solo a entidades
Posted by natmendoza NO[at]SPAM yahoo.com at 12/13/2004 11:26:53 AM
Hola!! Existe algun Collate en SQL Server 2000 en donde todas las entidades de una base de datos (tablas, views, stores, ect) sean case-insensitive y que los datos almacenados sean case-sensitive? Muchas Gracias!! Natalia...more >>

Migration from Access to Sql Server
Posted by Chuck Insight at 12/10/2004 5:24:39 PM
We have a working MS Access 2000 database hosted externally and a couple applications running against them. Fortunately, the site is getting busy, so it's time ot migrate to SQL Server 2000. What tool is available in either platform to facilitate this transition gracefully? Thanks, Chuck...more >>

DTS error: can't insert identity column??
Posted by ccchhhttt NO[at]SPAM yahoo.com at 12/10/2004 2:27:28 PM
Hi, all: I have a strange problem with my DTS package. I have a table with autogrow number column as primary key. I truncate the database before my data load. My DTS data load task is simple. I have make sure that identity column are not mapped to my data column. I also make sure in the opt...more >>

how can i copy all of sql server to another?
Posted by Nancy Drew at 12/10/2004 8:55:18 AM
hi all we're upgrading our development server. what's the easiest way to copy all of sql server (all databases, all users, etc) to the new installation? tks ...more >>

bit-datatype aggregation to byte
Posted by web-accounts NO[at]SPAM gmx.de at 12/10/2004 1:29:24 AM
Hello Group, when i use bit-datatype for saving boolean-values then sql-server aggregates up to 8 in one byte-field. how sql-server saves the 3-states (true, false, NULL)? in my opinion a 8-aggregation is only possibly for NOT NULL bit-column-specifications. is this right? Thanx for a answe...more >>

Memory settings
Posted by Pippen at 12/8/2004 2:26:14 PM
What is the best percentage of memory to use for a workstation running MS-SQL? Thansk, -p ...more >>

help with two column report
Posted by newbie_dba at 12/8/2004 12:35:40 PM
I have a report the gets the following data for each member in a report table format, this query takes parameters and returns about 20 records and each has the same information shown below. Name company title address phone email effective date However, instead of this data "snaking" to...more >>

Query help - Calculating Business Days
Posted by Andrew at 12/7/2004 4:22:21 PM
I am trying to calculate the number of business days between two dates for each row returned in a query. I would prefer to avoid using a stored procedure, if possible, because I am using this for Crystal Reports and I have parameters that get built with Crystal to narrow down the resultset. I...more >>

Please help me with this query
Posted by cmay at 12/6/2004 9:11:58 PM
Can someone please help me with this query. I have a table that records students test results, on various days. The fields of interest are StudentID, Score, and TestDate. Now, I want a query that will show fields in this table, for each students highest score. So, for each student, there ...more >>

Need help with this query
Posted by cmay at 12/6/2004 9:11:48 PM
Can someone please help me with this query. I have a table that records students test results, on various days. The fields of interest are StudentID, Score, and TestDate. Now, I want a query that will show fields in this table, for each students highest score. So, for each student, there ...more >>

need help with this query
Posted by cmay at 12/6/2004 8:59:33 PM
Can someone please help me with this query. I have a table that records students test results, on various days. The fields of interest are StudentID, Score, and TestDate. Now, I want a query that will show fields in this table, for each students highest score. So, for each student, there ...more >>

Upgrading a SQL Server driver
Posted by BoB Teijema at 12/6/2004 3:49:58 PM
Hi all, This might be a very stupid question: To do an upgrade of the SQL Server driver, would it be sufficient to just copy the latest version of the SQLSRV32.dll to the C:\Windows\system32 directory (overwriting the existent one). Or would I need to do more? Thanks in advance, BoB ...more >>

can i split an parameter into an array inside a storedProc?
Posted by Nancy Drew at 12/6/2004 3:19:11 PM
hi all i want to pass something like "3,5,8" as a varChar to a stored proc, split into an array using something like arrValues = split(@sString, ",") and then do something like: for i = 0 to uBound(arrValues) insert into myTable(column) values (arrValues(i)) next i do this sort of t...more >>

Compound Aggregate?
Posted by MrT at 12/5/2004 9:31:05 PM
Hi, A nice easy one for you. I'm using the Northwind database and want a SQL statement that will tell me the day and quantity that the most orders were placed on. I have; SELECT orderdate, sum(quantity) as totalsold FROM orders inner join [order details] ON orders.orderid = [order deta...more >>

lost data in local SQL server drive
Posted by younglee369 NO[at]SPAM hotmail.com at 12/5/2004 11:32:06 AM
We have Compaq 8500. 2 drives died,and when we put new drives in, the sql local drive which contained most data were empty. What would you suggest?...more >>

SQL Server and web applications
Posted by Ross Haselhurst at 12/4/2004 1:24:06 PM
Dear all, we are running an sql server 2000 which host our customer database which is collected onsite, we would like to offer order tracking to our customers through our website. Our website and email is hosted by another company and we just upload our content. What I am thinking of doing...more >>

Terminal Services Sessions and MS SQL Server Advice
Posted by Ross Haselhurst at 12/4/2004 1:19:30 PM
Dear all, We have custom software for our operation which is using sql server over a lan at present and is working fine, what i am trying to research is using the same application over terminal services on a terminal server, I have a terminal server with the software installed this gets its...more >>

SQL Server DTS From Sybase
Posted by shop NO[at]SPAM pacifictabla.com at 12/2/2004 1:31:36 PM
Hi: I want to import data from a Sybase database via a SQL Server DTS package. The database views in Sybase I will be importing from all have different names according to the date of the data in that view. For example: database.dbo.SybaseView20041122 only has data for Nov. 22, 2004. I want ...more >>


DevelopmentNow Blog