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) > november 2003

RAISERROR from SQL Server SP
Posted by DavidM at 11/30/2003 3:15:00 PM
I'm curious to know if anyone has any experience with using RAISERROR from within their SQL Server stored procedures and somehow trapping the error and message from within a VB application. When an ADO control is used to execute a stored procedure and there is an error returned from RAISERROR,...more >>


Upgraded memory!!
Posted by mike at 11/27/2003 9:07:56 AM
Hi! After my upgrade from 512Mb to 1024Mb of RAM, my sqlserver-process is taking it all. I did not have that problem before the upgrade. The sqlserver says that it has 1024Mb. Is it something I have forgotten to do after the upgrade? Can I change the max_server_memory to 500Mb? I restarted t...more >>

Concatenate a field from >1 records where criteria match
Posted by ms at 11/26/2003 4:46:24 PM
How would a query be written that concatenates a string field that meets the specified criteria? Here is some sample data. I need to concatenate the ItemDesc field where the ItemNo is equivalent: ItemNo SeqNo ItemDesc 02677 001 CONNECTOR,0.100x0.100 (2.54x2.5 02677 002 4),10Vrms,1A,-55-10...more >>

import data from .txt file to database table
Posted by achen NO[at]SPAM comverge.com at 11/25/2003 11:24:29 AM
Hi All, I saved "select * from xxx where id=234" query on a remote server in a .txt file. Is there an easy way to "import" the data in the .txt file to a table with the same fields on my PC ? thanks !...more >>

Getting time of SQL Server Computer
Posted by trudell_dan NO[at]SPAM hotmail.com at 11/25/2003 6:37:56 AM
Hi everyone, Is there a stored procedure or any other way of getting the current date and time of the SQL Server computer? Thanks in advance, Dan...more >>

bit field
Posted by Dmitri Shvetsov at 11/24/2003 2:01:59 PM
Hi, How a bit field should be stored on MSSQL 2000 server database? As a bit, byte or word? Next question - a set of bits? Thanks, Dmitri ...more >>

ADVICE NEEDED from a PRO
Posted by Rudy Truyens at 11/24/2003 7:40:26 AM
We have a web application that supports multiple clients. Some clients will have (not yet) about 10^9 records in a certain table, others 10^6. The idea is to make a seperate database for each client, so the small client won't suffer performance wise because the big client is accessing the databas...more >>

Stored Proc Help Please
Posted by John Webb at 11/21/2003 3:01:10 PM
Hope someone can help. I am trying to write a stored proceedure to display sales activity by month and then sum all the columbs. The problem is that our sales year starts in April and end in March. So far I have been able to get the sales info my using to sp's, one that say month >3 and the o...more >>



trusted connection
Posted by ggg at 11/19/2003 3:18:43 PM
I got an error with "not a trusted connection". what is that meaning? thanks in advance. ggg ...more >>

Customize charts in report services
Posted by qtao NO[at]SPAM doe.k12.de.us at 11/19/2003 8:16:20 AM
I created a bar chart using report services (beta 2). But I could not found a way to change the font size of the chart title, x- and y-axis title and the width of the bars. Does anyone have a solution? I searched the book online for rs, and found a message saying: "The chart control used in ...more >>

How do you execute a query to do the following?
Posted by jeff29_b NO[at]SPAM yahoo.com at 11/18/2003 10:52:23 AM
I have a table with numbers in a row from 1 to 100. But some of the numbers are missing. Is there a way in a sql statement to select all the missing numbers?...more >>

Table scan occurs when there is an index
Posted by itamar NO[at]SPAM xor.co.il at 11/18/2003 7:27:50 AM
select * from table2 where Date2 = '10-12-2003 12:00:00' Using the query analyzer "Display Estimated Execution Plan" shows a table scan will occur (and running the query takes a long time). The problem is - there is only 1 index on the table, a primary index on Date2 field. To make thing...more >>

Selecting top session number for each student
Posted by Joe Di Giulio at 11/17/2003 3:12:14 PM
Hello all, Could someone please help me with a query that will only the highest session number for each student id given the data below. StudentID SessionNo Grade Date 19 3 3.50 2003-04-14 00:00:00 19 5 3.60 ...more >>

Using result of aggregate function against each record?
Posted by zapp0 NO[at]SPAM email.si at 11/17/2003 4:24:25 AM
Dear All, is there any other (better) way to perform this kind of query? Is there a way to do this in a single query? A simple example of the situation (on northwind DB): DECLARE @OrdersTotal MONEY SELECT @OrdersTotal = SUM(UnitPrice*Quantity*(1-Discount)) FROM "Order Details" WHER...more >>

can't write to DB, why?
Posted by fa99tty NO[at]SPAM hotmail.com at 11/14/2003 12:18:01 PM
Hi, We have an application that is writing to an SQL database that has several tables which we've created. We have been testing it for a couple of weeks to see how it reacts to large amounts of data and we seem to have hit a wall here much earlier than we expected. Our database's size is o...more >>

SQL Server Version Numbers
Posted by david.e.macaskill NO[at]SPAM honeywell.com at 11/13/2003 7:05:03 AM
Does this strike you as odd? If I run SELECT @@VERSION I get: Microsoft SQL Server 2000 - 8.00.194 (Intel X86) Aug 6 2000 00:57:48 Copyright (c) 1988-2000 Microsoft Corporation Developer Edition on Windows NT 5.0 (Build 2195: Service Pack 3) What leaps out at me is the "Server Pack 3"...more >>

Upsizing Access to SQL Server
Posted by michael.dionne NO[at]SPAM nextel.com at 11/11/2003 3:00:35 PM
I am currently running Access 2000 and I want to upsize this database to SQL Server 2000. I only have one table in the Access database (a very small table) when I go to upsize the database into an exist SQL Server database I keep getting an "overflow" error. Does anyone know what I doing wrong...more >>

xp_cmdshell and pass commandline parameters to .exe program
Posted by dblist2003 NO[at]SPAM yahoo.com at 11/10/2003 1:32:29 PM
I need to execute xp_cmdshell in a trigger and pass a command line parameter to the .exe program i.e. I have a .exe program c:\program files\savedata.exe In the trigger I have a parameter @Id bigint I need to pass the parameter @Id to savedata.exe In the trigger, I am trying EXEC mas...more >>

HELP w/SQL tables
Posted by MB at 11/7/2003 2:02:42 PM
I need to develop a Cold Fusion application using SQL tables, I am not sure how to setup my tables or that this is the optimal way of setting my tables for the application that I am trying top automate. I've first created 2 tables as follows: SOSC ----- 1 Record ID (Primary key) 2 C...more >>

Linked table in SQL Server 2000
Posted by michael.dionne NO[at]SPAM nextel.com at 11/7/2003 11:49:12 AM
I'm a pretty new user to SQL Server 2000 so forgive me if my question is elementary. I need to create a linked table and view from an oracle database to my SQL Server db. I can create this link in Access so I figure I can do the same thing in SQL Server. I'm obviously not doing something righ...more >>

Cancel Stored Procedure execution
Posted by Lenny at 11/5/2003 10:43:16 PM
Hello, Is there a way to stop stored procedure execution upon user requests. A stored procedure is called from APS.NET page. Actually a new thread is started that calls sp, the page is then reloaded every 5 seconds and progress bar is displayed. Usually it takes a few seconds to 10 mins to ex...more >>

How to change original mdf ldf file names
Posted by robc at 11/5/2003 10:25:21 PM
I detached and copied both the mdf and ldf, renamed it using explorer... I was able to attach the copied files as a database with a new name, however, the original name remains the same. Any way to change that name as well ? Can I have problems with what I have done ? Thanks ! ...more >>

How much faster is SqlServer than Access?
Posted by jdwagman NO[at]SPAM earthlink.net at 11/5/2003 6:54:14 AM
I am running a VB app with Access 97/2000 backend. I need a rough guesstimate as to how much faster I might expect my processes to run if I move over to stored procedures on SqlServer 2000. Again, I'm talking rough - like 1x, 100x,1000x, just approximate - forget the variables you might be think...more >>

datepart function question
Posted by switter NO[at]SPAM medamicus.com at 11/4/2003 2:50:12 PM
I am using datepart in the following manner to create a weekly group: DATEPART(wk, o.SCHED_START_DATE) AS 'GROUP_WEEK' This gives me a numerical value for the week. Is there anyway I can convert that to a date range? For instance, week 46 is the same as the date range 10/9/2003 to 11/15/2003. ...more >>

Transfer a DB from SQL Server 2000 to SQL Server 7 ?
Posted by lewis.veale NO[at]SPAM pdms.com at 11/4/2003 5:29:44 AM
Can the group suggest any way in which I might easily transfer a SQL Server 2000 database into a SQL Server 7 instance? I understand you can't restore a SQL2000 backup in SQL7, but perhaps there is a setting to make it SQL7 compatible? Or is there a simple DTS / BCP trick I could use? The...more >>


DevelopmentNow Blog