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) > february 2007 > threads for february 8 - 14, 2007

Filter by week: 1 2 3 4

Merging contents of one db to another huge db.
Posted by Chandra at 2/14/2007 9:59:51 PM
I am storing data temporarily in a database... and periodically need to update that huge database, so just has to copy that temp DB to the original one. Using sql may take a few hours to finish this operation. I think you can do "export" from temp database into a file and "import" into the hu...more >>


Backup and restore database hourly: how to implement it?
Posted by danceli NO[at]SPAM gmail.com at 2/14/2007 4:51:08 PM
I have two servers, using SQL server 2000. I was asked for implementing hourly Backup 3 databases in one server and restore those databases to another server. Could anyone give me the detailed steps to do that? Thanks a lot in advance! ...more >>

Delta compression of query results
Posted by Russell Wallace at 2/14/2007 3:47:37 PM
Suppose a database server and client are separated by a low bandwidth link such as DSL, and the client repeatedly issues a query for, say, a current product list. Suppose the product list is large, but only a handful of entries have typically changed between queries. It would be nice if onl...more >>

export database structure
Posted by Xerxes at 2/14/2007 3:32:19 PM
Hi, is there a way of exporting database structure not the data in it? Thanks. ...more >>

in query, how can I compare string?
Posted by kirke at 2/13/2007 2:33:25 PM
Hi I wanna put string in query "where" part. For example, $sql="select VEHICLE FROM database WHERE MECHANIC =BRIAN "; like above, "mechanic" column is filled with strings. Then how can I write "where" part? Above query does not work. Thanks. ...more >>

Basic Questions
Posted by BJMurphy at 2/13/2007 1:01:02 PM
Hi All, I am used to other SQL engines, and have a few basic questions-- 1)If I wanted to conditionally drop a table, does SQL Server have a way to natively do this? Many SQL implementations will allow something like: CREATE OR REPLACE tablename AS SELECT x,y,z FROM sourcetable ; ...more >>

Project Planning
Posted by PP at 2/13/2007 12:26:02 PM
Hello Based on three tables (Projects, Tasks and UserCalender) I would like to work out the total amount of available resources (UserCalender table contains a entry for each user for each day, day being 7.5 hours) and total required effort (sum of Tasks.EstimateLikley) split over 12 months. ...more >>

Can't Connect to SQL db
Posted by DanWeaver at 2/13/2007 12:09:26 PM
Going a bit crazy. Have sqlserver all installed and running. I have a security problem I think- have read many other news posts that SOUND similar but e.g. My SQL Server configuration manager doesnt seem to have seccurity options let alone offer the possibility of allowing a 'mix' of SQL/ window...more >>



scripting data
Posted by farseer at 2/12/2007 10:07:29 PM
Hi, I need to take data from a SQL Serer 2005 database, and load into a remote 2000 database. I've already been able to script and create the database objects (MS SQL Server 2005 has a nifty option which allows you to scripting for SQL Server 2000 compliance). Now i just need to get the data...more >>

Java DatabaseMetaData and MS SQL 2005
Posted by jweaver NO[at]SPAM xaware.com at 2/12/2007 3:07:07 PM
I'm having a problem getting back appropriate metadata for stored procedures from MS SQL Server 2000 and 2005. I've created a simple stored procedure that has an output param that is a cursor. When I ask for the metadata for that stored procedure using a JDBC driver I get back a datatype va...more >>

returning one single record rather than multiples
Posted by Lee at 2/12/2007 2:39:39 PM
Hi Is it possible to return the results of a query so that instead of having say 10 rows its concatenated, eg My query returns 'M' 10 times, can this be returned as 'M M M M M M M M M M'? Thanks Lee ...more >>

Callable statements, SQLServer and JRun
Posted by cormac.foley NO[at]SPAM gmail.com at 2/12/2007 12:23:06 PM
Hi, I'm developing a java application which uses SQL Server as the database. I use Callable Statements to connect to the database. I use JRun as the app server. When running the application I want to be able to monitor locks/process info etc in the 'Current Activity' section in the 'Managemen...more >>

SQL Format Function "0000"
Posted by duprejonathan NO[at]SPAM yahoo.fr at 2/12/2007 6:38:01 AM
Hello, i don't know how to format a string with an SQL select query for my VB6 App. I have a table like this : Code - Name 1 - Jonathan 2 - Mike .... 9 - Claudia 10 - Robbie 11 - Sandy But I would get code column result's with a particular format like this : 0001 - Jonathan 0002 -...more >>

Migrating to 2005, need advice
Posted by tootsuite NO[at]SPAM gmail.com at 2/11/2007 9:52:52 PM
Help. I have been tasked with upgrading a 2000 instance to 2005. I have actually done this before, but it was a long time ago, and I didn't do it alone. Now, the sitation is little different, and I need to know the EXACT steps to take. Does anyone have a FAQ or link that outlines migration s...more >>

Problem with SQL server 2000
Posted by Rex at 2/11/2007 9:08:57 PM
Hi I have a table called "Member" as given below.. familyID memberID firstName -------- -------- -------------------- 0 7 Stuart 0 5 Kasey 0 1 Sally 0 2 Cooper 1 9 Rosemary 2 3 Lisa 2 6 Steph...more >>

Problems loading SQL server 2000
Posted by Richard Deakin at 2/10/2007 11:59:53 AM
Hi I'm having problems loading a new instance of SQL 2000 Developer edition as a default instance onto my laptop. Everytime I try to do so it I get a message at the end of the installation saying the 'Server failed to initialize' and refer to the set up log. When I look at the error log it ...more >>

databases
Posted by lipuni at 2/10/2007 2:41:12 AM
i really want to know, there are how types of databases? how many types of servers? how many types of inernet based languages? ...more >>

SSIS Import
Posted by Eric at 2/9/2007 3:50:13 PM
In MS Excel, the ability exists to run a "web query." This function is accessed via the data menu's import external data option. The web query wizard accepts a URL address, and then is able to import the data from that address into an excel worksheet. What I would like to do is use SSIS to i...more >>

sql 2005 upgrade problems
Posted by KR at 2/9/2007 3:32:49 PM
Hi, We are running a test upgrade form sql 2000 standard edition to sql 2005 developer edition. Followed through all the steps and specified the account(SA priveleges and currently used by the 2000 version) and is the local admin on the box for the services and the setup seemed to move fine, e...more >>

Log File is Full error: How to prevent this happening?
Posted by danceli NO[at]SPAM gmail.com at 2/9/2007 12:39:18 PM
"The log file for database is full. Back up the transaction log for the database to free up some log space." Now I only know this way to deal with that manually, Step1. in option , chance Recovery model from FULL to Simple. Step2: go to task to manually shrink the log file Step3: Change re...more >>

Can't connect to SQL Server(SQL Express) in VS 2005
Posted by DanWeaver at 2/9/2007 10:03:54 AM
In SQL Server Configuration Manager I apparently have a server named SQL Server(SQL Express) running - however, in VS 2005 when I try to 'add connection' (right click in server explorer) I cant see it- I would like to see it so I can create a new SQL server database. Any help much appreciated-...more >>

Large number of INSERT statements - not all are executed
Posted by Dmitri at 2/9/2007 7:52:07 AM
Hello! I have a developer that is playing around with some SQL statements using VB.NET. He has a test table in a SQL 2000 database, and he has about 2000 generated INSERT statements. When the 2000 INSERT statements are run in SQL query analyzer, all 2000 rows are added to the table. When he...more >>

Learning SQL Server with Win XP Home
Posted by DanWeaver at 2/9/2007 7:25:53 AM
How can I practice the use of SQL server without changing my girlfriends laptop to XP Pro (which anyway I dont have)? Using (unfortunately) Windows XP Home not Pro, Visual Studio 2005. Trying to learn SQL server with asp, javascript, vbsrcipt and HTML- new to this. Headbutted the wall for a few...more >>

get record with earliest datetime value
Posted by hharry at 2/9/2007 6:59:41 AM
Hello all, Quick sql syntax question: I have this table: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo]. [REQUESTS]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[REQUESTS] GO CREATE TABLE [dbo].[REQUESTS] ( [ROW_ID] [uniqueidentifier] NULL , ...more >>

Where is my dts?
Posted by othellomy NO[at]SPAM yahoo.com at 2/9/2007 4:19:49 AM
Why is dts packages out of server 2005? In server 2k they were there but in 2005 it's gone? I tried to connect to 2k using 2005 client interface and can't seem to locate the dts packages I seem to notice. ...more >>

Column update structure change
Posted by DaveP at 2/8/2007 5:27:14 PM
hi I want to increase a varchar(5000) to varchar(8000) on a table that has approximately million rows..... What is the impact on the server or any good recomendations of a action to accomplish this in the best and fastest way. thanks davep ...more >>

Optimizing a big query
Posted by Merennulli at 2/8/2007 4:05:22 PM
To start with, I'll give a simplified overview of my data. BaseRecord (4mil rows, 25k in each Region) ID | Name | Region | etc OtherData (7.5mil rows, 1 or 2 per ID) ID | Type(1/2) | Data ProblemTable (4mil rows) ID | ConcatenatedHistory The concatenated history field is a nvarchar wi...more >>

Backup fails using SMO with big databases
Posted by sjoshi at 2/8/2007 2:42:46 PM
Hello I'm seeing the backup using SMO fails with big databases (>15GB). I have a 2GB database and I can see the command go thru. in Profiler but after it's about 50-70% done, I get an exception saying backup failed. There is no details on the SQLServer log. Here's the code snippet: bk.Init...more >>

Full date value not being written via JDBC - any ideas?
Posted by MackTheKnife at 2/8/2007 2:32:17 PM
Hi, I'm trying to write a java.sql.Date to a database and the minutes/ seconds etc. are not being written. I've seen and tested many examples found via searches and still have come up with nothing. Here's what I have: java.sql.Date formation - recommended constructor forms: java.sql.Date en...more >>

Effective permission for a group
Posted by akkha1234 NO[at]SPAM gmail.com at 2/8/2007 11:09:18 AM
When I click on the properties of a 2005 sql server database and then permissions. If I select a group and then effective permission, I got an error, saying that "cannot execute as the principal server because the 'xxx \group' does not exist, this type of principal cannot be impersonated, or yo...more >>

Need advice on system performance
Posted by tootsuite NO[at]SPAM gmail.com at 2/8/2007 10:28:08 AM
Hi, I am starting a new job next week. Part of what I am required to do is a "system diagnostic" on a SQL Server 2000 box to determine what areas can use improvement - this would include configuration settings, backup/recovery, sql tuning, etc... and anything else I may not have mentioned her...more >>

xp_cmdshell sql server 2000
Posted by shark at 2/8/2007 9:31:36 AM
hi, does anybody know how to enable/disable xp_cmdshell in sql server 2000. i our server this sp has been disbaled for security puropse.but i need to use it in a job.so please can any body guide me? thanks for the help. -Shark. ...more >>

Need help running query on data/time field
Posted by Techhead at 2/8/2007 9:06:15 AM
I have a date/time field with a sql format of "datetime" The actual date/time data format is MM/DD/YYYY^hh:mm:ss:pm or "1/25/2007 12:00:16 AM" Both the date and time are combined on the same field with a space seperating the two. I need to run a query on this date/time field using the criteri...more >>

odd stored procedure behavior
Posted by brianlanning at 2/8/2007 9:03:41 AM
We have a stored procedure that we've tried with two slightly different designs. It needs to take a 30 day date range and return a result set. Design 1 takes one date as a parameter. The other date is calculated in a local variable to be 30 days before the one that was passed in. Both data ...more >>

Locate rows in table where column value missing (I think!)
Posted by teddysnips NO[at]SPAM hotmail.com at 2/8/2007 5:06:01 AM
SQL 2k, DDL below. I have a simple table with the following data: fldYear fldCode1 fldCode2 2000 ABC1 ABC12 2000 ABC1 ABC13 2001 ABC1 ABC12 2002 ABC1 ABC12 2002 ABC1 ABC13 I need to know, for every distinct combination of fldCo...more >>

Why optimizer is not smart? Is dynamic SQL my only option...
Posted by serge at 2/8/2007 12:30:59 AM
declare @ContactId as integer set @ContactId = 5 select * from Person.Contact where ContactId = @ContactId OR @ContactId = -1 If you run this in SQL 2005 on the AdventureWorks database, why the logical reads is 561 Table 'Contact'. Scan count 1, logical reads 56 an...more >>


DevelopmentNow Blog