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 > threads for september 22 - 28, 2004

Filter by week: 1 2 3 4 5

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 >>

Can't import Access DB into MSDE
Posted by no0spam NO[at]SPAM yahoo.com at 9/23/2004 3:58:33 PM
I want to move my Access 2K database into MSDE. The Access Upsizing Wizard crashes (a known bug wi A2K), so I'm using the following suggested method: Access --> New --> Project (Existing Database) This asks for the name of the .adp file to create and then launches into the Data Link Pro...more >>

Replace SQL server in multiple server network
Posted by William Logan at 9/23/2004 3:50:28 PM
Hello all DBAs what is the best methodolgy to replace a server with a new server in a multiple sql server environment.. Is is using back up/restore to another/bridge type server then rename servers or is it to bring in new server then tranfer the datafiles. Does tranfering the data files includ...more >>

Pulling 2 values from 2 textboxes displayed in a third
Posted by tjgraham4 NO[at]SPAM hotmail.com at 9/23/2004 2:26:36 PM
I have a problem trying to get a value from textbox 1 and textbox 2. If those two values match the data in the database then it has to return a third corresponding value to a third textbox (or label) after a user clicks a submit button. Basically, I am trying to allow users to enter a value of ...more >>

Showing friendly values in the GUI
Posted by jlarosa NO[at]SPAM alumni.brown.edu at 9/23/2004 1:37:23 PM
I am new to SQL server and I am looking for the best practice regarding the following: The GUI for the database I am creating has a number of questions like: A. Where are you currently living? 1) In my own home 2) In the home of a family member 3) In a shelter 4) On the street However, f...more >>

Linked Server on SQL2000 to DB2 - desperate...
Posted by Bretl Andy at 9/23/2004 12:47:49 PM
Hi All, I am close before throwing the machine out of the window. I tried to establish a linked server on our SQL2000 server pointing to a DB. EXEC sp_addlinkedserver @server = 'DB2', @srvproduct = 'IBM OLE DB Provider for DB2 Servers', @provider = 'IBMDADB2', @provstr='DSN=JDE_PROD;UID=XXX...more >>

XP_SQLMaint
Posted by dobrien NO[at]SPAM amcad.com at 9/23/2004 12:26:51 PM
I am running SQL Server 2000 SP3 on Win2k Server. I have just built a new maintenance plan that first backs up the database, then analyzes it for allocation and rebuilds indexes. Below is what I am using: exec xp_sqlmaint '-S SCDEV -U "sa" -P <my_sa_password> -D ScProd -PlanName Web_DB_Backu...more >>

Temporary table problem (maybe)
Posted by Not Me at 9/23/2004 10:24:06 AM
Hi, I have a stored procedure, that works perfectly when run from the query analyser, however if I run it through access vba, (using exec) I get a runtime error 208: invalid object name '#tmpContact'. Any ideas why this happens? The temporary table #tmpContact is used in the procedure, b...more >>

Need help with query or possible Stored Procedure
Posted by usallc NO[at]SPAM gmail.com at 9/23/2004 8:44:14 AM
I need some help with the following query: DECLARE @SRV VARCHAR(20), @date smalldatetime SET @SRV = (select @@servername) SET @date = '20040901' select Srv_Name = @SRV, DB_Name = 'DB_NAME', Table_Name = 'Info_Table', Date_of_Records = @date, count(*) AS 'Actual Total' , max (SER_NO)- mi...more >>

Delete using another table's values
Posted by sgpgpjr NO[at]SPAM yahoo.ie at 9/23/2004 2:40:24 AM
Hi all, I am trying to perform a delete that I could achieve in Access but need to do this in sql2000. I have two tables Warranty and Registrations. I would like to delete all items in the warranty table where there is a match in registrations on a common field. I access the query would be:...more >>

How many records in a table?
Posted by Martin Feuersteiner at 9/23/2004 1:39:09 AM
Hi! Stupid question as this also depends on hardware but is there a limit on how many rows I can have in a single MSSQL 2000 table? Table consists of six int columns and has three indexes. Is like 10 Million or 100 Million considered to be 'normal' or unrealistic? Thanks very much for your ...more >>

Microsoft Reporting Service
Posted by thorsten.fleckenstein NO[at]SPAM de.cpm-int.com at 9/23/2004 12:30:01 AM
I have the following Question: Is it possible to install a Reporting Service at IIS Webserver without SQL Server 2000 on the same machine. We have a Enterprise SQL Server at another machine and i don't want to install another SQL Server at a IIS. Thank you for all responses Flecki...more >>

Can't change datatype???
Posted by J.C. Flores at 9/22/2004 10:03:05 PM
Hello all, First of all, I must state that I'm new to SQL Server, but have been a long-time software guy for quite some time. Please excuse the potential simplicity of the solution to my problem. I create a blank database (TestDB) under my server machine (SQL Server 2000 Standard)... I ...more >>

Front-end tools -- Which is the most productive?
Posted by binhph NO[at]SPAM gmail.com at 9/22/2004 9:52:13 PM
After having seen my co-worker reinventing the wheel when he busily labored to build MS Access framework, I want to share my perspective. Having experienced with Access, Visual Basic, Visual C++, and PowerBuilder, I think Sybase's PowerBuilder is the most productive tool to build front-ends f...more >>

Database server connection
Posted by penghao98 NO[at]SPAM hotmail.com at 9/22/2004 8:26:11 PM
I am trying to using sqlserver as back-end for an application(web) running on the window 2X, one thing I am not sure is that once I establish the connection between database server and application, should I keep this connection open while application is running, or only open it when there is a r...more >>

image question
Posted by Tom at 9/22/2004 5:24:26 PM
hello friends I want to specify a field to save icons I want to give this field a maximum of 120kb for each icon to be stored in the db. what datatype should I assign to this field and how do I specify the size ? Thanks Tom ...more >>

Replication: Transactional: Multi Publications, One Subscriber.
Posted by froliol NO[at]SPAM yahoo.com at 9/22/2004 4:36:18 PM
Greetings All, I was hoping that a replication sage might be able to answer a question for me. I want to have one subscriber subscribing to N publishers. I essentially have a company that has a main headquarters and three satellite offices. I want each of the satellite offices to push their ...more >>

How do I change the owner from a table in a database
Posted by Jeff Magouirk at 9/22/2004 3:51:03 PM
Dear Group, I have a table in the a database that I need to change the owner to dbo. How can I do this. Thanks in advance. Jeff Magouirk ...more >>

Timestamp Conversion
Posted by BroncosBuck99 NO[at]SPAM gmail.com at 9/22/2004 2:24:53 PM
I am working with an application that is returning a second based timestamp. It returns values based on the 86440 second day in GMT. Is there an ability within SQL Server to convert the value into an hour time value? I need to take this value and convert it to a hour value for the time zone...more >>

Subform problem with unique-table-property set in access adp
Posted by Filips Benoit at 9/22/2004 10:42:34 AM
Dear All, W2000 Office2000 Access adp SQLserver DB Problem: Adding a new property for a company in the subform. The FIRST time I Select a property in combobox CPROP_PRP_ID the subform act strange. 1. The selected value doen't show in the combobox! 2. The sortorder of the subform change...more >>

Using a Select statment for the name of the field?
Posted by sbligh NO[at]SPAM canoemail.com at 9/22/2004 10:17:19 AM
Do any of you know if it's possible to get the name of your field from another table? E.g. Select FYear as [Select description from YearTable where category=1] I need the name of the fields to be user defined and the only way I can see this happening is through a table. But now...how do ...more >>

Print the Table Structure
Posted by Fabio Terrosi at 9/22/2004 9:40:36 AM
Hello to everyone! How can I print the structure of a table from the SQL SERVER ENTERPRISE MANAGER? Thank You Fabio *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

How to print the Table layout
Posted by Fabio Terrosi at 9/22/2004 8:40:35 AM
Hello to everyone I am using SQL Server Enterprise Manager and I would like to print the structure of each table of a database, with the purpose to see the whole record layout. (In Access there is Analyzer which does that) but apparently I acnnot find anything similar in EM. Who Could help me...more >>

Design Question
Posted by iamthecow NO[at]SPAM hotmail.com at 9/22/2004 6:19:06 AM
Hi I am trying to implement a invtentory control system and would like some advice on the best design for it. The system will have to main tables Product and Stock which will look as follows Product ------- ProductId PartNumber Description Stock ----- StockId ProductId SerialNu...more >>

Mailing Lists
Posted by mick NO[at]SPAM kehoe.demon.co.uk at 9/22/2004 5:31:07 AM
Hi All We are running SQL Server & Outlook with an exchange server. We are looking for a way to import the address book & email details into a database table. We have managed to do this with MS Access by using the import option exchange(). Is there a similar way this can be done in SQLServe...more >>

Runtime error data provider or other service provided an efail status
Posted by wumutek NO[at]SPAM yahoo.com at 9/22/2004 5:19:32 AM
Anyone knows what would cause this?When Enterprise Manager is used to open a table Runtime error data provider or other service provided an efail status...more >>


DevelopmentNow Blog