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) > september 2004

Filter by week: 1 2 3 4 5

Restoring the master to different drive letters
Posted by spec_server at 9/30/2004 8:09:53 PM
Can you restore the master database, running on windows server 2000, sql server 2000 from a backup that was taken from c:\ to another server restoring to d:\? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>


SQL Server Service Account
Posted by Douglas Buchanan at 9/30/2004 3:09:51 PM
SqlServer2k is on the domain server SqlServer2k is on a laptop too I want to copy a database from the domain to the laptop over the network using the copy database wizard. I have done this before with no problem but this time I get the following error: Your SQL Server Service is running ...more >>

Query returning duplicate field names
Posted by Don at 9/30/2004 2:52:36 PM
I have a .NET program that can connect to either an Access 97 database or an SQL Server 7 database. In the database I have two tables which have a field called ID. When I run a query like "SELECT A.*, B.* FROM A, B", the query returns those fields as "A.ID" and "B.ID" when connected to Access 9...more >>

Export data from SQL2000 to XML
Posted by Leszek Gruszka at 9/30/2004 12:39:51 PM
How can I export data from SQL2000 to XML? Is there any tools with SQL for that? I don't want to use "for xml explicit"... *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

sorting string
Posted by balkii_r NO[at]SPAM yahoo.com at 9/30/2004 11:50:45 AM
hi!!! would appreciate if somebody could let me know the query/algoritham to sort the following values in the column either in asc or desc the values in the column originally 1 1-1/2 1-1/4 1/2 10 12 14 16 18 2 2-1/2 20 3 3/4 4 5 6 8 the sorted result should be as follow...more >>

run 3 dynamic selects from stored proc
Posted by drdave NO[at]SPAM canoemail.com at 9/30/2004 10:12:28 AM
I am trying to run 3 dynamic selects from stored proc, really only the table name is dynamic.. Anway I'm kinda lost on how I can accomplish this.. this is what I have but it only returns the first result.. that being basic CREATE PROCEDURE email_complexity @TableName VarChar(100) AS ...more >>

Group by on the text colum throws error
Posted by aj70000 NO[at]SPAM hotmail.com at 9/30/2004 9:38:43 AM
Hi , I have this query paprojnumber is varchar patx500 is text palineitemseq is int select Paprojnumber,Patx500,max(palineitemseq) from pa02101,pa01601 where pa02101.pabillnoteidx=pa01601.pabillnoteidx group by paprojnumber,patx500 it throws this error Server: Msg 306, Level 16, S...more >>

Can SQL Server 2005 Express and SQL Server 2005 be installed on same machine?
Posted by John Dalberg at 9/30/2004 6:40:22 AM
I am interested in installing both SQL Server 2005 Express and SQL Server 2005 b2 on the same machine. Can they both be installed on the same machine without conflicts? As in two different instances? John Dalberg...more >>



Table size count
Posted by versatile_anand NO[at]SPAM yahoo.com at 9/30/2004 2:09:03 AM
Hi all Please help me to find out table size in MS-SQL how can I count or identify, this specific table is using some xyz kb of space of my hdd. thanks...more >>

Converting a smallint to an nvarchar
Posted by ree32 NO[at]SPAM hotmail.com at 9/29/2004 11:06:12 PM
For a SQL statement in an Alias column I am am combing several columns. But I am having problems with one column as it is a smallint. I get this error Syntax error converting the nvarchar value to a column of data type smallint My Sql statement " Select Stilngcol1 + stringcol2 + intcol...more >>

Transposing rows into columns
Posted by Fabio at 9/29/2004 7:08:37 PM
Hello, is there any quite easy solution for the problem of transposing the rows into the columns? I have the following table with some data in it: dealer date 09.00 10.00 11.00 12.00 13.00 14.00 ----------------------------------------------------------------- 1 20...more >>

How to configure sql server
Posted by raju.angani NO[at]SPAM gmail.com at 9/29/2004 3:58:53 PM
Hi All, Here is my question What might you configure on a SQL Server so that a Web server running on the same machine, with limited memory, will continue to perform optimally? Thank you Raju...more >>

Is there a way we can implement business logic by storing it in colums of a table and calling it?
Posted by ajayz90 NO[at]SPAM hotmail.com at 9/29/2004 2:15:37 PM
What is the way we could implement a business logic from a Table by storing it statemnnets in a colums and defining an execute sql to execute it.Some legal requirements make it diffcult for us to create modify stored procdures so Iwant to have a process where we create new rows in a table and ex...more >>

Stop time duration problem
Posted by BroncosBuck99 NO[at]SPAM gmail.com at 9/29/2004 10:02:39 AM
I am working with a proprietary database that records the date, time, location, and speed of a vehicle. It is pulling this information from GPS unit tied to a vehicle. The table is populated with values that are pulled from the GPS unit every 30 seconds. I need to find the duration of time for w...more >>

openrowset drivers msdaora
Posted by dedejavu NO[at]SPAM hotmail.com at 9/29/2004 10:01:00 AM
Hi all, This should be easy, but it has me pulling my hair out. I have a SQL 7 server running on NT server 4 with all the patches and updates for both. I cannot seem to get the openrowset to run against an oracle server, try as I might to install the drivers from oracle. The first error I go...more >>

Error: Foreign key ****** reference invalid table
Posted by dbuchanan75 NO[at]SPAM comcast.net at 9/29/2004 9:16:17 AM
Here is a protion of the the DDL that created the table I wish to referece: CREATE TABLE [dbo].[tblPerson] ( [PersonID] [int] IDENTITY (1 ,1) NOT NULL CONSTRAINT PKPersonID PRIMARY KEY, .... .... Here is the line in my DDL that returns the error: CREATE TABLE [dbo].[tblAvailability] ...more >>

Create query based on a field that won't be the same value in both tables
Posted by jgaull NO[at]SPAM williamblair.com at 9/29/2004 7:41:18 AM
I have two tables: TestA and TestB. Both tables have 3 fields: ID, Name, and RunDate. I need to create a query which will join the two tables first on Name but then I need to match up the RunDates even though the RunDates won't be the same. CREATE TABLE TestA (ID INT IDENTITY, Name VARCHAR(2...more >>

2 sql servers with Access Front-end
Posted by jjcuzz NO[at]SPAM hotmail.com at 9/29/2004 7:05:03 AM
Hello, I have an sql server 2000 on the network and one installed locally in my computer. I use access as front-end. I go through odbc to connect to the sql server on the network. I was wondering if it is possible to setup the access file to link to either server. I need to do this because I...more >>

Recommended method to obtain SQLDataPath
Posted by zcsessions NO[at]SPAM visionair.com at 9/29/2004 6:32:57 AM
I know the default data path on a SQL7 server is defined in the registry key SQLDataPath. I want to be able to determine the default data path in a VB.NET application on the local machine and remote machines. Is using the Registry Class the best way to do that or is there a SQL command that can ...more >>

random row
Posted by anuke NO[at]SPAM bk.ru at 9/29/2004 5:37:50 AM
Hi there. I need to fetch ONE random row from many. How can i get it? I try to execute "SELECT field.table FROM table ORDER by RAND()" no effect. Thank you....more >>

Newbie needs help with SQL statement
Posted by George J at 9/29/2004 12:42:26 AM
Hello, I'm having a difficult time finding the right sql syntax to perform an update. Here is the situation: I have two tables, each with an orderid field and a removal_date field. There is a one-to-many relationship between table A and table B, with B having multiple records to each one...more >>

Stored procedure performance optimization
Posted by Vagif Abilov at 9/28/2004 7:20:42 PM
Hello, I have a question regarding stored procedure desing that provides the optimal performance. Let's say we have a table Products that consists of three columns: Name, Status, RegistrationTime. All columns are indexed and users should be able to lookup data by any of the columns. We have...more >>

Another question (IN keyword)
Posted by Federica T at 9/28/2004 6:00:21 PM
Is possible in SQLSERVER to use a syntax like this? select x,y from table_1 where (x,y) not in (select h,k from table_2) I've tried, but it doen't work. Do you know any workaround? Thank you Fede ...more >>

Problem with a foreing key
Posted by Federica T at 9/28/2004 3:41:22 PM
I'm a beginner in using SQLServer and I 'm trying to bring a db Schema written for DB2 into SQLServer. My problem is this: using a tool to translate the script for creating the DB, I obtain the following code: ALTER TABLE PROJECT.RSURETTA ADD FOREIGN KEY(VOCE ) REFERENCES PROJECT.RSANVOCE(VO...more >>

Backup transaction logs and replication simultaneously
Posted by wumutek NO[at]SPAM yahoo.com at 9/28/2004 11:08:47 AM
Is there any problem with implementating some kind of replication and backing up transaction logs at the same time? SQL Server 2000 Standard Edition The server is configured to back up log files regularly, with the presence of a(New) Disaster recovery server and with an inability for standb...more >>

MSSQL acting strange
Posted by ir_don NO[at]SPAM yahoo.com at 9/28/2004 8:12:51 AM
I have MSSQL2k SP3a on WIN2k SP4. moved a Date/log files to this server about a week ago from a SQL7 server and attached it to this new Sql2k server. everything works fine for about 24hrs and then it starts timing out !! all I have to so is restart the MSSQL service and works fine again ...more >>

Need to Change Developers Acct to Windows Authentication
Posted by skosmicki NO[at]SPAM sfmc-gi.org at 9/28/2004 7:48:51 AM
I have my SQL 7.0 server set for Mixed security. I see now (finally) the advantages of having windows authentication security for windows groups. I do most of my developing in Access Projects which require a login of some type. I have been using my SQL login to develop with SQL and then when ...more >>

How to find the size of the database dump.
Posted by nasinha NO[at]SPAM cisco.com at 9/28/2004 7:10:23 AM
hi, There is facility to do backup of the database. I can use that facility to backup the database. But before i do a backup i want to check if the disk space available enough to backup that database. I have a 22gb database mdf file, when i took a backup of that its only 3gb. SO i cannot use ...more >>

Follow-up: DTS question
Posted by B at 9/27/2004 11:16:58 PM
How to use a dsn-less connection from DTS? Source: MySQL Destination: SQL Server 7.0 I have the ADODB.connection code but unsure where and how to use it. Pls advise. TIA! Bob ...more >>

Problem with SQL generated from MS Access
Posted by proflicker NO[at]SPAM hotmail.com at 9/27/2004 1:46:49 PM
SELECT DISTINCT product.product_id AS Expr1 FROM [SELECT product.product_id, product.item_name, product.display, product.selling_price, product.smallpicture, product.main_size, product.main_dinnerware, dbo_coupon_special.coupon_id, dbo_coupon_special.special_price, coupon.effective_date, coupon...more >>

Hanging or lockup issue with SQL Server and Terminal Services 2000 on NT 4 Domain Server
Posted by Akzsurtep NO[at]SPAM aol.com at 9/27/2004 1:13:32 PM
Hi all, Have a situation that my company has never run across before. Client is running NT4 for the domain server, using terminal services 2000 and running an application with a SQL Server backend and they are experiencing locking problems. Once one person gets locked out then everyone tryi...more >>

server heartbeat function
Posted by emebohw NO[at]SPAM netscape.net at 9/27/2004 1:06:24 PM
Hi all. I have a simple vbs script I use to connect to sql server, try and read from a table, and if it fails notify me that the sql server might be down. Works fine in its very simple way, but what I am wondering is if I should try and connect to one table from every specific database on the se...more >>

Internal SQL Server error when using variable
Posted by seton.software NO[at]SPAM verizon.net at 9/27/2004 11:12:51 AM
In the code below I get an Internal SQL Server error in Query Analyzer. Ultimately I want to get thos code working in a function. DECLARE @WeekNumber tinyint DECLARE @Comp decimal(18,2) DECLARE @PeriodFromDate datetime DECLARE @PeriodToDate datetime SET @WeekNumber = 27 SET @PeriodFromD...more >>

Changing datatype from char to datetime
Posted by clsawyer NO[at]SPAM foley.com at 9/27/2004 9:15:29 AM
I am trying to run the following query: ALTER TABLE dnb_profile ALTER COLUMN [family update date] datetime and I keep getting the following error: Server: Msg 242, Level 16, State 3, Line 1 The conversion of a char data type to a datetime data type resulted in an out-of-range datetime va...more >>

log shipping - out of sync
Posted by farrellyr NO[at]SPAM yourfuture.ab.ca at 9/27/2004 8:41:57 AM
I have tried to set up log shipping for one of our databases - first time. Using EM I was able to create the job and maintenance plan sucessfully. I wasn't able to find any errors in any logs. In the monitor server, when I look at job history, everything is getting copied and loaded sucessfu...more >>

SA to Windows Authentication
Posted by James Goodwill at 9/27/2004 8:33:25 AM
Hello, We have a SQL 2000 installation (running on NT4 SP6a) with a database accessed by a client application. Currently the application logs into the database using a the SA account. I'd like to move the client access over to Window Authentication. Each user has their own NT account. What ste...more >>

strange performance
Posted by groups NO[at]SPAM beu.hm at 9/27/2004 8:06:38 AM
I have a strange performance question hopefully someone can clarify for me. I take a production database and make a copy of it, called test, on the same instance on the same server both running at the same time. All the same things are running for each database and no one is using each database ...more >>

sql books
Posted by PremKumar.Selvapathy NO[at]SPAM gmail.com at 9/26/2004 9:04:10 PM
hi pls tell the site's where i can download free e-books, bye, s.premkumar...more >>

DTS global variable question
Posted by billy_cormic NO[at]SPAM hotmail.com at 9/26/2004 2:25:10 PM
Hello, I am having difficulty with global variables in DTS. Specifically I would like to instantiate a global variable with a value obtained from a SQL database. I have created the global variable through the package properties section. Now i need to instantiate it with a value from the d...more >>

Database Design
Posted by Shabam at 9/26/2004 5:51:48 AM
I have an application that lets users upload pictures. These pictures are stored in different folders depending on the user ID (of the user that it belongs to). The path can be figured out dynamically by knowing the user ID. However, the programmer that's coding my application has decided to ...more >>

Suggestions on front end development tools
Posted by Doug Broadwell at 9/25/2004 10:40:23 PM
I'm getting ready to start a fairly large application to be hosted on SQL-Server. In the past I have used Access 2002 (as a front end, wasn't happy with the number of bugs I ran into), PowerBuilder 6.5, Oracle Forms 7 years ago (also no happy with the number of bugs). I was curious what the st...more >>

Advise: DTS
Posted by B at 9/25/2004 10:29:43 AM
Version: SQL Server 7.0 App: MS Access 2000 I created DTS to move records from MySQL to SQL Server (approx over 500,000+ per months dataset) for purpose of canned and adhoc reporting. The app have a simple interface using MS Access where user will input the timeframe of the dataset they wil...more >>

OUTER JOIN problem
Posted by matt NO[at]SPAM fruitsalad.org at 9/25/2004 1:18:52 AM
Hello I have to tables ar and arb, ar holds articles and a swedish description, arb holds descriptions in other languages. I want to retreive all articles that match a criteria from ar and also display their corresponding entries in arb, but if there is NO entry in arb I still want it to sh...more >>

Connecting to Analysis Services using HTTP
Posted by Ramir Santos at 9/24/2004 11:25:16 PM
my analysis server is hosted on a win2k server with IIS, the hosting page is on another machine. I have followed everything as per MS KB article and I could not connect through the analysis server using http. i have similar implementation on my dev machine but the main difference is my OLAP is...more >>

Changing Data Format On Select
Posted by Muhd at 9/24/2004 6:33:39 PM
Hey all, I have a basic table that looks something like this. CREATE TABLE MyTable ( ID INT IDENTITY PRIMARY KEY, Company_ID INT NOT NULL, Round VARCHAR(50) NOT NULL, Details VARCHAR(250) NOT NULL ) It has a few rows of data that look like this: Identity Company_ID Round ...more >>

Saving text to MS-SQL...
Posted by The Eeediot at 9/24/2004 3:21:10 PM
If you use the command UPDATE <tablename> SET <fieldname> = ' ... ' to update a CHAR or TEXT field there are some characters that can cause problems such as a single quote. Are there any other type of charaters like that? TIA ...more >>

Represent a value list as a table for Outer Join????
Posted by kristin NO[at]SPAM masterypoint.com at 9/24/2004 11:36:27 AM
This might not be possible, but on the chance that it can - is there a way to do the following: Given a arbitray one dimesional value list: ('AALGX','12345','XXXXX','AAINX','AMMXX') Is there a way that I could do a select statement, or similiar, in the value list, to get the following resul...more >>

Variables in SQL Statements
Posted by Pippen at 9/24/2004 3:40:23 AM
What am I doing wrong in the following snippet of code? ----------------------------------- declare @FullPath varchar(255) set @FullPath = 'C:\MyDir\MyFile.txt' bulk insert Northwind.dbo.Sometable from @FullPath with (FIELDTERMINATOR = ',') ----------------------------------- This w...more >>

user defined function issue
Posted by sandell NO[at]SPAM pacbell.net at 9/23/2004 11:09:28 PM
I have a user defined function that may be called multiple times in the same query - here's a rough example select col1, get_random_number(), col2, col3, get_random_number() from table1 The problem I am having is that I need to have both calls to the user defined function return the same va...more >>

Bulk inserts to Data Warehouse - Best Practices?
Posted by Steve_CA at 9/23/2004 7:27:14 PM
Hello all, I just started a new job this week and they complain about the length of time it takes to load data into their data warehouse, which they do once a month. From what I can gather, they rebuild the indexes before the insert with an 80% Fillfactor, then insert the data (with the in...more >>


DevelopmentNow Blog