Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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

Filter by week: 1 2 3 4 5

3 Login failed every second
Posted by Saimon at 4/30/2004 5:14:21 PM
Hi. In my system since 27th april every second appears in event\application three failed connection with sa. How can is possible ? On this server there are all my website. Can you help me ? Saimon(Florence) ...more >>


Inserting row and scope_identity()
Posted by Marcus at 4/30/2004 4:49:14 PM
With a query such as, SET NoCount ON INSERT INTO .... VALUES ... SELECT scope_identity() SET NoCount OFF , can I trust that the id I get back is for the row that I just inserted, or can it be incorrect because of other "simultaneous" inserts? I need it for an ASP page. Thanks, Ma...more >>

multiquery in a store procedure...
Posted by Alessandro at 4/30/2004 4:11:26 PM
Hi, here is the problem... I must create a store procedure that do the following... 1. select id_name,...'some other field' from table 'data' where 'criteria' = @parameter 2. use the result of the first selection to create another selection combining that results with the table 'name' whe...more >>

How do I calculate the sum of each number in a string of numbers?
Posted by Chris Michael at 4/30/2004 3:26:55 PM
I've got a string of numbers, say 123456 (the actually number is 12 digits long). I need to calculate the sum of each individual number in the string of numbers, so in the example of 123456 the sum would be 21 (1+2+3+4+5+6). Thanks ...more >>

Reverse Wildcard Searches Impossible?
Posted by robertbrown1971 NO[at]SPAM yahoo.com at 4/30/2004 12:19:57 PM
I have researched newsgroups and the web very thoroughly and unsuccessfully for a solution to what I believe is a very common problem. I know it's easy to do wildcard match against data in DB (using LIKE and "%" and "?"). But is it possible to match a concrete string against a database of wil...more >>

percent of executed procedure
Posted by rozrabiak at 4/30/2004 11:43:41 AM
Hi! How can I get percent of executed procedure in MSSQL Server, lik in Enterprise Manager and/or dbMgr2k ? I use Visual C# and MSDE. Thank's for help, gregory...more >>

Measure data transfer between replicated servers
Posted by sjoshi NO[at]SPAM ingr.com at 4/30/2004 11:26:05 AM
Hello All I was wondering if there's a way to monitor/measure data-transfer being taking place between 2 serves in a replicated environment. I cannot see any counters, etc. to monitor this..?? thanks Sunit...more >>

SQL Server Alerts...
Posted by jags_32 NO[at]SPAM yahoo.com at 4/30/2004 10:36:44 AM
Hello I am trying to generate an email to be sent to an operator if a SQL Server (2000) goes down for any reason. I defined the alert to email operator for error number "17148" which is "SQL Server is terminating due to 'stop' request from Service Control Manager.". To test this, I shutdown ...more >>



how to discover either windows group or SQL login
Posted by timgru NO[at]SPAM hotmail.com at 4/30/2004 10:20:30 AM
Hello, I am putting together a row level security plan for our sales database. I will give a brief description of the method I am thinking of using to give you an idea of how I will need to be able to discover the group or login the user is using to access the data. I have a table called sa...more >>

how to get online/offline status
Posted by Stefan Behrens at 4/30/2004 9:11:52 AM
Hi, i try get information about the online or offline status of a database within ms-sql srv 2000. I can look it up within server manager, but I'm looking for a way to get this information from the command line or a select statement. Is there a command or a sql statement that tells me t...more >>

Method Execute of Object - Command Falied(Runtime error-2147217900)
Posted by nachikethm NO[at]SPAM yahoo.com at 4/30/2004 8:03:07 AM
I am getting above error, could pls anyone help me........? Soruce Code : Sub updateOfferCategoryAmounts(ByVal Transid As Long) Dim spComm As Command Set spComm = New Command Dim intCatID As Integer Dim rsBarADO As Recordset Dim spADO As Command Set s...more >>

How to find out which field in a table is updated
Posted by lphuong NO[at]SPAM neh.gov at 4/30/2004 6:32:53 AM
When someone modifies a field in a table, I like to find out which field he/she changed. Currently, only the LAST person to modify an object is saved. For example, if I modify an Application record, I will see "MyName" in the "tblApplications.UpdatedBy" field and the date and time I updated it....more >>

Limiting tables displayed in new window for SQL 2000 Enterprise Manager
Posted by daxw NO[at]SPAM bellsouth.net at 4/30/2004 5:35:24 AM
Can anyone tell me if there's a way to create new windows from the tables section of a database in Enterprise Manager such that I can limit the tables included in that window? Ultimately, I'm looking for a solution whereby I can group tables, stored procedures, etc. into logical groups that can...more >>

Importing Big Text fields with <CR><LF> in them
Posted by Paul Scotchford at 4/30/2004 4:46:55 AM
Env : SLQSERVER2000 - DTS I want to import a text file with 3 fields in it ... F1: Ident char(3) F2: Note (Text) char(32,000) yeah big eh! F3: Date Field F2: has <CR><LF> thru it, this means the DTS import thinks its a multiple records to deal with as each row i...more >>

SQL Server
Posted by paul NO[at]SPAM mdacreative.com at 4/30/2004 2:51:23 AM
Scenario: 2 x win2k pro machines 1 x windows 2000 server In a workgroup not domain Problem: I have SQL2000 installed on my new server (SERVER001), I now need SQL Mail working. I have created a user account username: sql password: whatever and made it a member of the admin group. I...more >>

Migrating StarOffice spreadsheet data to SQL Server
Posted by mau_cadi NO[at]SPAM hotmail.com at 4/29/2004 10:23:22 PM
Hi I need to import data from StarOffice 5.2 spreadsheets to a Datawarehouse built in SQL Server and I wan to know what is the best way to do it. I think I have the next options: - Create a java app using StarOffice api - Use StarOffice Automation (I'm not shure if its possible in version 5...more >>

SQL user
Posted by bolero92 NO[at]SPAM yahoo.com at 4/29/2004 10:09:45 PM
I perform full backup on MSSQL2000 However, the directory of backup files is only writable by Administrator But I find that I can't backup (I think it is due to permission) In which role MSSQL2000 is running? In Service->MSSQLSERVER It is set to Local System Account, Can I just change to A...more >>

divide INT get decimal output
Posted by Josh Phillips at 4/29/2004 6:46:55 PM
I have written the following query and even though I used CAST if the number is less then 1 it show up as 0. Here is the query: select cast(count(SafetyTrainingYN) AS FLOAT) from ICPCDATA where SafetyTrainingYN = 1 / (select count(SafetyTrainingYN) from ICPCDATA) Any help would be much...more >>

dumping data from database
Posted by rozrabiak at 4/29/2004 5:47:40 PM
Hi:) I need to dump data from database in to *.sql file. I try it using DUMP DATABASE but it not work that I need it. So, how can I dump data from database in to *.sql file and then run it using: osql -E -i nameOfDumpedDatabase.sql Thanks for help, greetings, gregory :)...more >>

After copying a record with an SP all textfields has max lenght
Posted by Filips Benoit at 4/29/2004 5:37:42 PM
Dear All, After copying a record using an Stored procedure all textfields (nvarchar) has max lenght ! See VBA-code and SP below VBA-code tos execute SP Dim objcommand As ADODB.Command Dim intReturnParam As Long Set objcommand = New ADODB.Command With objcommand ...more >>

Create a view in VBA
Posted by Not Me at 4/29/2004 5:29:00 PM
Hi, Is it possible to create some SQL in VBA, 'run it' then view as a datasheet the results? I'm trying to throw together a fairly large search form, and VBA seems the best way to parse the parameters. Cheers, Chris ...more >>

Assigning parameters in a function
Posted by funkdm1 NO[at]SPAM yahoo.com at 4/29/2004 4:39:34 PM
I am trying to create a function in SQL 2000. Im rusty on function syntax and need to also assign some variables for use within this function. Example: create function blah (@param1 int) declare @var1 int, @var2 int --it doesnt like this method of assigning values to my variables???????...more >>

SQL Server Object Security
Posted by noloader NO[at]SPAM yahoo.com at 4/29/2004 3:45:12 PM
Hello, We are using Access Front End (ADP Project) and SQL Server 2000 backend. SQL Server is using NT Security. We do not want the users to access the the underlying tables. So, we went to each table and unchecked 'Select'. We also placed an 'X' in all columns for guest and public account....more >>

How to identify fragmented index for rebuild
Posted by xo55ox NO[at]SPAM hotmail.com at 4/29/2004 2:44:10 PM
Hi, I want to find out what is a good way to identify indexes that need rebuilding. I tried to run DBCC showcontig and identify them based on the scan density %. And according to a Microsoft Tech Net - All About SQL Server Indexes discussion, the expert stated that based on the Density (below...more >>

DIsk quotas
Posted by itguy NO[at]SPAM xtrahost.co.uk at 4/29/2004 8:56:38 AM
Hello, I am investigating setting up a shared sql server. I wish to enforce database size quotas, and hopefully still allow customers to manage the creation of their own databases. Any thoughts or suggestions would be appreciated. Kind Regards Simon Hall...more >>

sybase driver
Posted by jamilahms NO[at]SPAM yahoo.com at 4/28/2004 8:20:59 PM
I am on windows xp, have installed sybase client, what driver do i need for tcp/ip connection to sybase12 sql server? For odbc, I only have Microsoft sql server driver Version 2000.81.9042.00...more >>

ISNUMERIC and CAST
Posted by dcmfan NO[at]SPAM aol.comSPNOAM at 4/28/2004 7:31:57 PM
SELECT ISNUMERIC('. ') 1 SELECT CAST('. ' AS [insert any numeric type]) Syntax error converting the varchar value '. ' to a column of data type [insert any numeric type]. Any thoughts as to why SQL Server 7.0 considers '. ' to be numeric, yet can't convert it to any numeric data t...more >>

Send email notification for Scheduled Job completion
Posted by aj70000 NO[at]SPAM hotmail.com at 4/28/2004 3:41:28 PM
Hi, I wanted to know how can we send out email notification for the Jobs that are completed. Thanks a lot in advance.... AJ...more >>

SQL Server - failure to replicate
Posted by David Macken at 4/28/2004 3:06:54 PM
After a recent crash, where tables had to be repaired we have been unable to re-instate or create new merge replication from a MS SQL 2000 system. All old publications and subscriptions have been deleted. New replications fail at the snapshot level. Anyone ideas ? *** Sent via Developersdex ht...more >>

Dynamic Cross Tab Using Cursors.
Posted by Jaidev Paruchuri at 4/28/2004 2:27:09 PM
I have two tables 1)Rollout_detail start_date Datetime, contract_date Datetime, budget_amt Money store_id int(foriegn key referring store.store_id) pan_number varchar(20) roll_id int 2)store store_id int(primary key) skey varchar(10) ...more >>

Sql maint plan not removing .trn files
Posted by GregB369 at 4/28/2004 1:57:46 PM
I have my Sql 2000 maintenance plan set to back up and then remove .bak and ..trn files after 4 days. It removes .bak fine, but not the .trn for some reason. This is ok for a while, but adventually it fills up the drive. I tried deleting and recreating the maint plan, but that didn't help. An...more >>

Output to the log file with XP_CMDSHELL
Posted by narine.kostandyan NO[at]SPAM prurealty.com at 4/28/2004 12:38:33 PM
Hi Folks, I am using an xp_cmdshell sp to start a C# app. This app downloads data files and imports them into DB. It has a logging functionality built-in and when executed from the command line or WE, it records it's progress into a log TXT file. But when executed via xp_cmdshell, it doesn't ...more >>

LINK WITH SQL SERVER
Posted by gloriarr2001 NO[at]SPAM yahoo.com.mx at 4/28/2004 12:34:47 PM
Hi, I'm doing a proyect with Visual Basic where I have to use a database that I've already made on SQL SERVER. In my computer I had to install WINDOWS 2000 family server, to be able to install SQL SERVER as server not as a client, I can see perfectly and totally the database from VB. The prob...more >>

User ID limit per database, Msg 15065
Posted by tostberg NO[at]SPAM eastmtn.com at 4/28/2004 8:39:25 AM
There appears to be a limit of ~16378 user Id's possible per database. When adding users we eventually get the message: > exec sp_adduser 'testUser', 'testUser', 'user_group' Server: Msg 15065, Level 16, State 1, Procedure sp_grantdbaccess, Line 160 All user IDs have been assigned. All of ...more >>

DB2 ODBC Error using in DTS (MDAC 2.7)
Posted by gastineau5 NO[at]SPAM comcast.net at 4/28/2004 8:17:38 AM
I'm having problems using the DB2 Connect ODBC Driver in my SQL Server 2000 DTS packages. It started occuring after installing MDAC 2.7 (which is necessary for the .NET framework). This error occurs when I try to open the transformation that uses an ODBC Connection object that is pointing to t...more >>

SQL Web Services
Posted by mattscott45 NO[at]SPAM hotmail.com at 4/28/2004 6:12:42 AM
I Need help with accessing an SQL server from a web method. Trying to connect from localhost to ms sql server 2000 sp1 and get the error: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied. at System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTran...more >>

Connected to which database
Posted by Post NO[at]SPAM tophoven.net at 4/28/2004 4:02:14 AM
Hello all, I have a scripts which needs the information about the database in which it is running. How can I find out this information. For example if I want to know the User who has satrted this report, I use the SYSTEM_USER procedure. Does an equal procedure exist to find out, on wh...more >>

Performance tuning and measure on MSSQL 2000
Posted by arnie NO[at]SPAM gormur.com at 4/28/2004 2:25:50 AM
Hi I am trying to design an IO subsystem for my SQL Server and for that I need to try and predict IO activity on each table in my MSSQL Database. My idea is to move the hottest tables into special disk subsystem away from the less hotter tables. So far I have gathered that we have three tabl...more >>

Installing SQL Server 2000 Developer on Windows XP Pro
Posted by rajchoud NO[at]SPAM hotmail.com at 4/27/2004 7:23:37 PM
Hi, I'm a newbie with SQL Server 2000 Developer. I know that it is supposed to install on Windows XP Pro, but I keep running into the following message: "The logon account cannot be validated for the SQL Server service. Validate ...". I've looked for help and taken the advise of trying t...more >>

SQL 2000: Inserting multiple rows into a single table
Posted by JBSchuler NO[at]SPAM tampabay.rr.com at 4/27/2004 4:23:24 PM
To anyone that is able to help.... What I am trying to do is this. I have two tables (Orders, and OrderDetails), and my question is on the order details. I would like to set up a stored procedure that essentially inserts in the orders table the mail order, and then insert multiple orderdetails...more >>

Can I carry my existing DB users to a new server and restore???
Posted by SD at 4/27/2004 1:30:32 PM
Hi, Quick question, I have about 20 users in my local server and database. We are looking to restore that database to a new server in a new network and still be able to retain the database users. We have created all 20 logins in the new server (exact names) but when we restore the database ...more >>

Index Performance
Posted by Mansoor Azam at 4/27/2004 1:25:38 PM
I have the following table with indexes CREATE TABLE dbo.Scratch ( ItemID int IDENTITY (1, 1) NOT NULL , Login varchar (12) NOT NULL , StartDate datetime NULL , PayDate datetime NULL , LastDisconnect datetime NULL ) GO CREATE INDEX idxPayDate ON dbo.Scratch(PayDate) GO ...more >>

Open up SQL Server for central server application...
Posted by bostonpartykid NO[at]SPAM yahoo.com at 4/27/2004 1:10:33 PM
I have an application which runs in many different stores. Stores that are within a chain want to be able to share their client lists. I want to implement a sync process where each application would ping a central server every 5-10 mins to check for changes made by any other store to the clien...more >>

Need Sql statement
Posted by radha at 4/27/2004 12:16:56 PM
--Table Create table tableName (Field1 int, Field2 int) Table Data Field1 Field2 1 10 2 10 3 10 1 20 2 20 3 30 I need Like a Sql statement like 1 10 (any separato...more >>

SQL Eliminate Duplicates
Posted by jallegue NO[at]SPAM med.miami.edu at 4/27/2004 10:42:05 AM
I am working with SQL 8.00. I have the following tables TABLE ClientInfo CheckNum Account Name Addr1 City State Zip --------------------------------------------------------------------- 12345 11111 John 123 Mary St Miami FL 33139 54321 22222 Mary ...more >>

reading Transaction Log.
Posted by elham_gh NO[at]SPAM yahoo.com at 4/27/2004 8:31:49 AM
Hi, How can i read information in Transaction Log in SQL Server 2000? Thanks...more >>

Need help
Posted by bhushanvinay NO[at]SPAM mail.com at 4/27/2004 6:21:02 AM
Can we make a Index on 2 or more tables Table a: Col1 int col2 varchar Table b: Col1 int col2 varchar can you have a single index for two tables a and b on the column Col1. Is this possible in SQL-Server. As far as i know you can make an index only on one Table....more >>

Should SQL concatenation return a null value if one field is null?
Posted by John Morgan at 4/26/2004 9:30:48 PM
In an SQL statement which concatenates several fields I get a null value returned if any one of the fields are null. Is this to be expected? For example : SELECT tblMember.memberAddress + ' ' + tblMember.memberTown + ' ' + tblMember.memberCounty + ' ' + tblMember.memberPostCode + '<br> '...more >>

column update function
Posted by santoshamb NO[at]SPAM yahoo.com at 4/26/2004 7:05:00 PM
This is probably a common problem with a standard design pattern, but I'm having trouble finding the solution. I have a table with a lot of columns, for this example I'll just use three but in reality its more like 20. Create Table myTable (int col_one primary key, int col_two, varchar(20) ...more >>

Unique constraint index
Posted by Mansoor Azam at 4/26/2004 4:00:35 PM
When I add a unique key constraint to column in SQL 6.5 why does it also create an index. e.g. In the table subaccounts I added a unique key constraint for the column login and SQL creates an index with the name UQ_SubAccounts_2__19 (UKC). Does this also mean that there is no need to create a...more >>


DevelopmentNow Blog