all groups > sql server programming > october 2003 > threads for monday october 13
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Indexes
Posted by Sanka at 10/13/2003 11:33:12 PM
Hi All,
We have a big table with about 35 columns - 10 Million
records. The table has got indexes on certain key columns
only.
Currently we need to create few reports using this table.
The filters / search criteria for the new reports uses
columns which are not indexed previously.
I... more >>
error(2)
Posted by u359375000 NO[at]SPAM spawnkill.ip-mobilphone.net at 10/13/2003 11:25:33 PM
create #table(A nvarchar(30), B nvarchar(20), c
nvarchar(15), D int)
insert into #table
select a,b,c,d
from x,y,z where c like 'Norm%'
group by a,b,c,d
create #table(class,name, exam,score) as:
A name1 math 100
A name1 math 88
A name1 Phy 98
A name1 Chm 98
A name1 SPT 89
A name2 ma... more >>
how to prepare dynamic SQL statement in C#
Posted by dancingbead at 10/13/2003 11:02:52 PM
As the subject.
Thanks
bead... more >>
Database Getting Bigger
Posted by Olan at 10/13/2003 10:31:04 PM
I'm having problem with SQL Database that getting bigger:
1. I have a batch processes that were enclosed with one BEGIN...END TRANSACTION and this perfectly run smoothly in
a small records until the database grows up to 800MB the problems occured, where some of the records where not updated ... more >>
FillFactor
Posted by Kevin Jackson at 10/13/2003 10:13:17 PM
What's the best typical fill factor???
Most of ours are set to 0 (the default) but some are set to 80%
... more >>
how to find all available SQL servers to connect to?
Posted by dancingbead at 10/13/2003 9:56:01 PM
In my C# code I need to provide the list of all available
SQL servers on the interface. I do I get that?
thanks.
bead... more >>
Need to see if I can get a smallint to go from 0 to 64000 and not -32000 to 32000
Posted by jack at 10/13/2003 9:48:11 PM
Hello,
I want to have an integer that is 64K, but no negitives? Smallint will
do -32000 to 32000, but I would like to have 0 to 64000.
Thanks,
Jack
... more >>
Linked Server Issue ( w/ AS400)
Posted by Daniel Jorge at 10/13/2003 8:53:05 PM
Hi there,
I'm trying to connect to my AS400 server thru a LINKED SERVER, but =
I'm having some troubles.
If someone have this solution Running or has passed thru it before, =
your help will be appreciated.
Thank you very much.
Below is the full script I'm Using to create ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DBCC ShrinkDatabase
Posted by john at 10/13/2003 8:48:49 PM
DBCC ShrinkDatabase (database_name, target_percent)
Lets assume one of the data files is 8MB with 6MB of data
and 2MB of free space.
run DBCC ShrinkDatabase (db_name, 25)
What will be the file size and how is this calculated and
can you provide another example.
thanks... more >>
Stored Procedure ? Trigger ?
Posted by Cybertof at 10/13/2003 8:40:10 PM
Hello,
I'm new in database programming with Sql Server.
I'm coming from ms access databases.
Could someone tell me :
1/ What is the difference between a view and a stored procedure ? (can a
stored procedure be a 'select' so returning rows like the views do ?)
2/ What is a trigger and wh... more >>
subdatasheets
Posted by rossauction at 10/13/2003 7:34:31 PM
Q: how do u make subdatasheets in SQL when the data is
being use in access
... more >>
Re: Save Message.
Posted by frk at 10/13/2003 7:20:06 PM
Hi,
Does anybody know how to save the Query Analyzer message
in the application / client?
Thanks
Frank... more >>
Delete duplicate rows in sql server 2000 ?
Posted by Luqman at 10/13/2003 7:12:00 PM
How can I delete all the duplicate rows.
For example: I have following data
Identity Date Description Amount
1 23/02/2003 ABC 2000
2 23/02/2003 ABC 2000
3 23/02/2003 ABC 2000
4 2... more >>
How to Get a Column Collate Setting?
Posted by Simon Ho at 10/13/2003 6:41:04 PM
I use
ALTER TABLE MyTable ALTER COLUMN MyColum VARCHAR(50) collate Latin1_General_CS_AS
to change a column's collate.
I can use DATABASEPROPERTYEX() query the database collate
but there is no collate property type in ColumnProperty() to query a column's collate.
Is there any other way... more >>
error
Posted by u128845214 NO[at]SPAM spawnkill.ip-mobilphone.net at 10/13/2003 6:31:39 PM
create #table(A nvarchar(30), B nvarchar(20), c nvarchar(15), D int)
insert into #table
select A,b,c,d
from x,y,z
group by a,b,c,d
select *,(select max(d) from #table t
where t.a = d.a and t.b = d.b and
t.c like 'm%') as mx1
drop #table
go
when there is such data as t.c like 'm%',
i... more >>
error
Posted by u128845214 NO[at]SPAM spawnkill.ip-mobilphone.net at 10/13/2003 6:24:46 PM
create #table
insert into #table
select A,b,c,d
from x,y,z
group by a,b,c,d
select *,(select max(d) from #table t
where t.a = d.a and t.b = d.b and
t.c like 'm%') as mx1
drop #table
go
when there is such data as t.c like 'm%',
it works OK but otherwise, i get error:
not supported,
... more >>
how to reference a database name in stored procedure
Posted by dancingbead at 10/13/2003 6:20:09 PM
I passed a parameter - a user specified database name to a
procedure, but when I try to create it using
CREATE DATABASE @dbname,
(@dbname is the parameter)
I got a syntax error near @dbname,
Any idea what went wrong?
thanks.
bead... more >>
Copy database
Posted by Michael Gesser at 10/13/2003 6:06:26 PM
Hello,
I need to make a copy of a database.
I mean to create database with another name that contains same data(stored
procedures and tables) as source db.
Is there any simple way to do it using SQL-DMO or T-SQL ?
Thanks in advance.
Michael Gesser.
... more >>
CONVERT(datetime)
Posted by Rob Meade at 10/13/2003 5:44:32 PM
Hi all,
In an ASP page I am inserting some data, on my development server it works
fine with a normal update, on the live server (hosted by someone else) -
they have different settings for the regional stuff and I have to use the
CONVERT statement on dates to ensure they go in correctly.
Th... more >>
How to update a table based on view fields
Posted by Pete Ruby at 10/13/2003 5:27:47 PM
I have a table (Table1) that has an ItemNbr as the primary key. I have a
set of views that pulls apart a description field from the table and puts
each piece into a new field in the view, basically Dim1, Dim2, Dim3, etc.
Based on the ItemNbr and the number of Dims populated, not all will be), I
... more >>
Stored Procedure
Posted by newman at 10/13/2003 5:23:17 PM
I have written an SQL script to update some tables and
produce an out to another table. I want to run this script
as a stored procedure to run every day at 7:00 am
Can any tell me how to do this and/or point me to a sight
that gives me step by step instructions.
Thanks
Regards
New... more >>
record sql server and agent start-up status
Posted by JJ Wang at 10/13/2003 5:19:33 PM
hi,
When the sql server and sql agent are first started, are
their status being written to any system tables or logs?
I want to write a store procedure to record the server and
agent start-up status.
Many thanks.
JJ... more >>
why is insert 'password' inserted as 'password '
Posted by george r smith at 10/13/2003 5:17:41 PM
Why when I use the insert statement with 'password'
the value 'password ' (with a space at the end) is
inserted into the database.
Honest this is happening and the password fails when it
comes back in the User Interface Process Application Block.
thanks
... more >>
Null in indexes
Posted by Richard G at 10/13/2003 5:10:01 PM
How do null values affect b-tree index searching? For example, if a table
has a date column and all rows with a null date are needed, is the fact that
the value being searched for is null, any different than if it were a
particular non-null value?
In addition, do null values in a composite in... more >>
Exporting the .txt file with a trigger
Posted by Sandra at 10/13/2003 5:09:27 PM
I need to generate a .txt file from a table and place in
the x:\temp\ location. I know I can create a .txt file in
DTS but how can I make that happen trigged by the event of
the table been successfully loaded.
I've been told I can use the FileSystemObject in DTS but
I've never done befor... more >>
t-sql
Posted by Sri at 10/13/2003 4:57:34 PM
Hi
I have address with below format in table and I need
to select in one line.
Is there any functions i need to use remove one keyboard
enter.
select * from #temp
address
----------
4620 S LAKE PARK AVE
APT 1 W
--I need below format.
4620 S LAKE PARK AVE APT 1 W
Any help will b... more >>
nulls are not null
Posted by at 10/13/2003 4:45:00 PM
I just moved a database from a windows 2000 server to one running Windows
2003. A query that was working fine is not working now.
If I do a select count(*), date from table1 where date is null I get a very
high count and a date that is not null, and not the same everytime I run the
query.
... more >>
Help with trigger
Posted by Brian Vallelunga at 10/13/2003 4:22:56 PM
I am trying to create a trigger that creates child-rows automatically when a
parent row is created.
I have three tables with the following columns.
Table: TableA
Columns: aID (pk) (int)
Table: TableB
Columns: bID (pk) (int)
Table: TableC
Columns: aID (fk), bID (fk), v... more >>
Clustered Indexes
Posted by Kevin Jackson at 10/13/2003 4:21:49 PM
I've been given a song and dance why we don't use them here but everything I
read says they are best practice.
I've created a few on our larger tables and most of the queries we run
against those tables are now much quicker.
Needless to say, the dude that doesn't like them is quiting and I... more >>
Copying TEXT datatypes
Posted by JemPower at 10/13/2003 4:03:48 PM
Hi all,
I'm trying to copy some fields from one table and insert them into another.
I've used variables in a select statement, but one of the source fields
happens to be a TEXT datatype, and SQL is NOT happy at all.
I've read somewhere about the command WriteText, but really can't see how
t... more >>
Agent
Posted by André Almeida Maldonado at 10/13/2003 4:00:38 PM
So...
I have the SQL Server 2000 installed in a machine with Windows 98 and I
can't start the SQL Server Agent automaticaly when the OS starts, this
option in Enterprise Manager is disabled. How can I start the SQL Server
Agent when the OS starts???
Thank's
... more >>
Best way to do this?
Posted by Keith at 10/13/2003 3:49:57 PM
I have a table set up as follows:
Product TranType Amount
255 1 20
255 1 15
255 2 25
255 3 35
What is the best way to accomplish this?
... more >>
Optimal number of columns in select stmt with more than 2 tables joned (DB2)
Posted by sselvakumar72 at 10/13/2003 3:45:52 PM
Hi all,
I would like to know the optimal number of columns in a select
statement when more than 2 tables are joined. Also I have a feeling
that the width of the result set in bytes would also affect the
performance of the query.
I am looking into creating views in DB2 with big query statements
in... more >>
Switching to MS SQL
Posted by CT at 10/13/2003 3:41:04 PM
Hi, I'm a long time mySQL/PHP user. For a new website I'm creating, I need to use MS SQL/ASP. I'm not quite sure where to start. I've looked through a few ASP books and the syntax seems simple enough, but I'm confused about MS SQL. I've seen a lot of screen shots in books of the MS SQL interface. Wh... more >>
SQLDebugger account
Posted by dba4theday at 10/13/2003 3:39:41 PM
I have been asked by one of my sys admins to remove the
SQLDebugger login because he heard it was a security risk.
I read a document from KnowledgeBase which indicated that
only when you give explicit permissions can it cause a
security leak. I also found that I can disable/enable the
acco... more >>
Computed time column
Posted by Matt Weaver at 10/13/2003 3:32:01 PM
I asked this question a few months ago, but my PC went belly up so I
apologize...
I have a table which shows events with begin times and end times. I want
to create computed columns for each hour in the day, i.e. h00, h01 ...
h23, and have those columns filled with a 1 if the event has any ... more >>
BULK-INSERT File existance checking
Posted by Nags at 10/13/2003 3:28:31 PM
I have a batch process which runs every 15 minute, which loads several files
into the database. Sometimes the files might not exist. When the file does
not exist the entire batch fails. This causes the entire batch to fail.
Basically, even if the file does not exist, it should fail gracefully ... more >>
How to connect an external SQL Server ?
Posted by Cybertof at 10/13/2003 3:24:38 PM
Hello,
From visual studio .net, is it possible to connect to an external sql
server ? (out of the local network)
If yes,
- how to 'see' it in the server explorer.
- how to make the connection with ado.net objects
Regards,
Cybertof.
... more >>
RE:Passing Params in SQL
Posted by Ricky at 10/13/2003 2:57:37 PM
Hi
I'm trying to pass params in SQL, but I can't use Stored Proc's since I want
to pass a WHERE clause and that is so much easier using a VIEW.....However I
know you can't pass params in VIEWs, is there a way I can get around this?
--
Kind Regards
Rikesh
(W2K-SP3 / SQL2K)
... more >>
TSQL Question about finding ranges
Posted by Emory King at 10/13/2003 2:39:34 PM
Suppose I have a table with a single integer column. The
table consists of the following values:
1, 2, 3, 4, 6, 7, 9, 11, 13, 14, 15, 16
I want a result set like this (columns separated by a ,):
1,4
6,7
9,9
11,11
13,16
This result set shows me the ranges present in the
original table.... more >>
Access SQL 'First'
Posted by Peter Nunez at 10/13/2003 2:32:09 PM
In my access queries I use the First function. Is there
an equivalent function in SQL Transact SQL? I need to
know how to convert to SQL Server.
Access: Select First([field]) ...
SQL Server Procedure Code: Select ???
Thanks, Peter... more >>
Increase the Column length in SQL Server 6.5
Posted by Jawahar Rajan at 10/13/2003 1:51:02 PM
All
Is it possible to increase the Column lenght in SQL Server
6.5 I have tried to use an Alter table command but but
this does not seem to support the column modification.
Only adding a column or adding / removing constraints?
Is this a limitation for SQL 6.5 only or even evident in
SQL... more >>
Log Shipping
Posted by brian at 10/13/2003 1:47:56 PM
Is it possible to use log shipping with sql2000 standard
edition? I was under the impression you could. But I am
reading a book 'Microsoft SQL2000 survival Guide' and it
states:
"Log shipping is included only with the Enterprise and
Developer editions of SQL server. If you are running the... more >>
backup t-log will auto shrink the log file size physically?
Posted by JJ Wang at 10/13/2003 1:40:13 PM
Hi all,
Will backup the tran-log automatically shrink the physical
tran-log file size on the disk?
Working on sql 2000.
Many thanks.
JJ... more >>
complex query - remove duplicates
Posted by estein at 10/13/2003 1:35:54 PM
I want to do a query on 3 tables. In the example below
if there is more
then 1 record in Table2 linked to T1 then multiple rows
are returned for
each table 1.
SELECT T1.MT_ID, T2.FULL_NAME
FROM Table1 T1
LEFT JOIN Table2 T2
ON T1.MT_ID = T2.MP_MT_ID AND T2.ISActive = 'T... more >>
How to Send Zero and not null for a no count()
Posted by Jack at 10/13/2003 1:30:58 PM
Hello,
I have a statement:
SELECT @DAY1SUM COUNT(COLUMN1)
If this is none I get a NULL and not a Zero.
How can I set it up so if it is NULL send a Zero back and not a null.
Thanks,
Jack
... more >>
Select for CURSOR with variable DB Name
Posted by Kevin at 10/13/2003 1:14:52 PM
I'm trying to build a select statement for a CURSOR where
part of the SQL statement is built using a variable.
The following fails to parse:
Declare Cursor1 Cursor
For
'select table_name from ' + @database
+ '.Information_Schema.Tables Where Table_Type = ''Base
Table'' order by Table_... more >>
SQL Multi-site?
Posted by Jim H. at 10/13/2003 1:06:08 PM
Hello,
Does SQL Database support multi-site database?
Thanks,
Jim.
... more >>
is there a better way to do this.
Posted by mukeshwa at 10/13/2003 12:20:37 PM
hi is there a better way to do this?
i am trying to insert the records of one table that are lesser than today
into another table.
but i feel there is no need for me to write a cursor. there should be a way
to do this usinga
sql query
create procedure sp_updateBookingInfo
as
if exists (S... more >>
Weird random error messages php / msSQL server
Posted by Jesse Edwards at 10/13/2003 11:58:18 AM
I'm doing basic inserts into a database, and it seems to
randomly give the following error.
Warning: (null)(): Invoke() failed: Exception occurred.
Source: Microsoft OLE DB Provider for ODBC Drivers
Description: [Microsoft][ODBC SQL Server Driver][SQL
Server]String or binary data would be... more >>
assign a value for a run time varable
Posted by Patrick at 10/13/2003 11:44:36 AM
Hi ,
is there any way to asign a value to a run time variable?
decalre @tmp_var nvarchar(10)
set = '@tmp_var' +'1'
and want to set a value for
set @tmp_var1 = 'ABC'
set = '@tmp_var' +'2'
set @tmp_var2 = 'DEF'
Thanks,
Pat
... more >>
denormaliazation of two table
Posted by Patrick at 10/13/2003 11:41:39 AM
Hi Freinds:
I have normalized tables:
INVOICE
nid int
namout money
and
INVOICENOTES
nnoteid int
nid int
cnote varchar(100)
NOTETYPE
nnoteid int
cnotetype varchar(10)
I need to denormalize the invoice and invoicenote tables like:
INVOICE# NOTE1 NOTE2 NOTE3
or
IN... more >>
SELECT ROWCOUNT
Posted by laurel at 10/13/2003 11:34:41 AM
Can the SELECT ROWCAOUNT statement be used within a UDF?
I kept getting an error. My function returns a table.
... more >>
SQL-DMO Backup, retrieving description
Posted by Mark Jackson at 10/13/2003 11:19:52 AM
Could someone please tell me how to retrieve the description of a backup
after backing up a database using the SQL-DMO Backup object and its
BackupSetDescription property.
Thanks,
Mark
... more >>
How Many Union Can I Make in a query with Sql Server 2000 ?
Posted by Roberto at 10/13/2003 10:57:57 AM
The question is this
How Many Union Can I make in a query with Sql Server 2000 ?
Example:
SELECT A,B From Table 1.....
UNION
SELECT A,B From Table 2.....
UNION
SELECT A,B From Table 3.....
UNION
SELECT A,B From Table N.....
How Many Table and How many unions ?
Thanks... more >>
Inner outer join question
Posted by Davef at 10/13/2003 10:50:14 AM
I have 3 tables I want to join sales, sales detail and payment. I am trying
to fill a data grid with the sales info and then I want to have a column on
the end with amount owed. so I want to add/subtract the
SUM(tempSalesDetail.SalesPrice) - SUM(Payment.paymentAmount) +
tempSales.totalShipping +... more >>
question about distributed transaction
Posted by joe at 10/13/2003 10:39:09 AM
I have a procedure in server A,
inside procedure, the codes are like following, do you think it'll rollback
the linkedserver records if encounter the errors?
.............
BEGIN Distributed Transaction
Insert into user.dbo.employees values (@id, @name,@address)
if @@ERROR<>0 goto ... more >>
Updating the year of a date field
Posted by Josh Gerszewski at 10/13/2003 10:29:11 AM
Hi Everyone,
Is there an easy way to update just the Year part of a date field?
Here's what I have:
RetentionID | RetentionCalcDate | RetentionReviewDate
======================================
1 | 1/1/2003 | 1/1/2007
1 | 12/31/2004 ... more >>
SQL Statements
Posted by Ste at 10/13/2003 9:47:35 AM
Anyone know of any good web sources on creating sql
statements?... more >>
Help with view definition.
Posted by Paul Simpson at 10/13/2003 9:29:47 AM
Hi,
I have a query which I would like to turn into a view. The query is:-
SELECT extracurr_groups.SetId, lecturer.lecturerId, GroupId, extracurr_=
groups.Name
FROM extracurr_groups CROSS JOIN
CMIS_Local.dbo.LECTURER lecturer
WHERE extracurr_groups.SetI... more >>
Does anyone has the same problem.
Posted by Lam Nguyen at 10/13/2003 9:24:41 AM
Hi all,
I wonder if anyone else has the same error message like
below. I am try to go to the next page and I got the
error below. Ang suggestions. Thanks.
Error message:
Newsgroup not available... more >>
MS please update your Newsgroup website
Posted by chris at 10/13/2003 9:22:48 AM
Im connecting to this group using Outlook Express. (In my companies research
room.) I see very current, up to date posts. However, when I log on to the
MS site and connect to these groups (from my desktop) the posts are over 6
hours old. Could you guys please update?
... more >>
Web Availability
Posted by Paul Simpson at 10/13/2003 9:22:46 AM
Apologies if this is covered elsewhere on this newsgroup (I couldn't see =
it) or if this is the wrong NG.
If I try to access this NG using the WWW interface at support.microsoft.com=
, I get "Newsgroup Not Available".
Any ideas, anyone?
TIA
Paul... more >>
UPDATE FROM help needed
Posted by Alex Kachtanov at 10/13/2003 8:40:35 AM
Hi,
I am using UPDATE FROM statement to update 2 fields in 1
record (table named Queue). There are over 30 connections
(applications written in C#) that concurrently execute the
same stored procedure with UPDATE FROM statement. But only
1 connection must be able to update that record wh... more >>
Dynamic Top N
Posted by Laurel at 10/13/2003 8:20:11 AM
Is there any way to use the Top N statement dynamically...
Declare @Top integer
Select @Top=8
Select Top @Top etc...... more >>
How to I get then DB Name on TSQL
Posted by Fernan at 10/13/2003 8:11:54 AM
I use multiple databases on a proyect I'm working on. I need to know
the DB i'm accecsing so I don't have to send it as a parameter everytime I
use the SP, plus I shouldn't hardcode the DB name on the SP. If any1 knows
how to get the DB name inside a SP, I would apreciate your help
--
F... more >>
OpenRowSet
Posted by Joshua Tipton at 10/13/2003 8:01:04 AM
I want to run the following code but using domain authentication via a passed in id and pass. Is this possible? If so how?
Joshua Tipton
select *
from OPENROWSET('SQLoledb','UID=domain/uid;PWD=UPASS;
Network=DBMSSOCN;Address=IP_NUM,1433;TIMEOUT=2000',
'select *
from INFORMATION_SCHEMA.tables
wh... more >>
Help writing sql statement
Posted by Zeek at 10/13/2003 7:22:44 AM
Good day all. I need help writing a sql statement. The
table name is RCI. I want to pull data where field C/O = O
and field When = greater then 30 days. I would like it
todisplay all the information on the records where these
above information is true.... more >>
RESTORE DATABASE Error
Posted by mcampbell37075 NO[at]SPAM Yahoo.com at 10/13/2003 7:22:28 AM
I'm attempting to to use ADO.Net to execute a RESTORE DATABASE. Here
is a snippet of the code I am using:
SqlConnection connection = new SqlConnection();
string connectionString =
ConfigurationSettings.AppSettings["ConnectionString"];
SqlCommand count = new SqlCommand();
SqlDataAdapter da =... more >>
Cursors
Posted by buddycwll NO[at]SPAM hotmail.com at 10/13/2003 7:21:50 AM
Hello People,
I want to create a stored procedure which goes through a table row by
row and looks at a field, which if its not in another table it will
add it to the other table, or if it is it will update it.
SQL Cursors seems the only way to step by step go through a table
looking at the ... more >>
Update Trigger
Posted by Wheel at 10/13/2003 6:57:05 AM
What I am trying to do is that if a record is updated in
the CLSSTATUS table and the MODIFYDATE field has been
updated and there is a record in the CLSRECORD_ACCESSED
table that has a CLSRECORD_ACCESSEDID field that matches
the CONTACTID field of the updated record, I want to
insert anothe... more >>
Imaga Data Type
Posted by Satish at 10/13/2003 5:51:23 AM
Hi All,
I have a new table which contain a field with
image datatype. How do I store my images in this new
table. I tried googling but of not much use.
Can anyone explain a step by step solution for this.
My table is like this:
CREATE TABLE [dbo].[TblTest] (
[ID] [int] IDENTITY (1,... more >>
Case question
Posted by niitmalad at 10/13/2003 5:39:12 AM
Dear Friends
i am witing the following query.
Select(CASE(sls_GROSSWEIGHT)
WHEN '' THEN 1
ELSE SLP_GROSSWEIGHT - SLS_GROSSWEIGHT
END ) AS TEST
FROM dbo.STOCKLISTPUR
Where i want that if the SLS_Grossweight is Null it
should show the value as 1.
I am not able to do the same ... more >>
ADO problem (bug?)
Posted by Damco at 10/13/2003 4:57:32 AM
Hi there!
I've got a problem using ADO to execute a stored procedure
(sp) on sql
server, which gets two dates and fills a table with some
data on that
interval. Typical execution time is about a minute for a
30days
interval. Since the sp takes potentialy a long time to
execute, I
execut... more >>
sql
Posted by mohammed at 10/13/2003 4:36:04 AM
adhoc query
Posted by bartverstraete77 NO[at]SPAM hotmail.com at 10/13/2003 4:13:22 AM
Hi I got this query it works great. :
declare @cyname as varchar(100), @key as int
set @cyname = ?
set @key = ?
set @key =(select top 1 user_key
from users
where (fk_record_type = 101) and (datediff(mi, last_update,
getdate()) > 30))
begin transaction
if(@key is null)
begin
insert into... more >>
RE: Try on patch
Posted by Marchioro Gianpietro at 10/13/2003 3:50:45 AM
Microsoft User
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to pr... more >>
Use these patch from MS
Posted by Jan Pieterman at 10/13/2003 3:22:53 AM
MS Customer
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to maintain t... more >>
How to access a mapped driver on SQL Server 2000 by using T-SQL?
Posted by moonriver at 10/13/2003 2:53:08 AM
I have a remote host (HP-UX 11.0) mapped to SQL Server
2000 (PC, Windows 2000) as drive Z:. However, I am unable
to access it using T-SQL statement. While executing the
following T-SQL statements,
exec master..xp_cmdshell "echo abcdefg > z:\abc.txt"
However, I am always encountered wit... more >>
Check these corrective update
Posted by matura at 10/13/2003 2:18:55 AM
Microsoft Partner
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which fixes
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express
as well as three newly discovered vulnerabilities.
Install now to help... more >>
Change Tracking for SQL Server
Posted by Steve Mew at 10/13/2003 2:16:48 AM
Has anyone come across a change tracking tool for SQL Server. Specifically
the scenario I want is the following :
A Production DB needs some modifications to its content.
This tool will copy the DB to a dev environment.
The Dev environment will be 2 copies of the DB, 1 as a control set and the... more >>
List domain users
Posted by Nuno Filipe at 10/13/2003 12:51:52 AM
Is there any way to get the domain users in TSQL (SQLServer2000) ?
Thanks in advance,
Nuno
... more >>
how to get all the SQL server that's available?
Posted by dancingbead at 10/13/2003 12:28:50 AM
should i use the SYSSERVERS system table? 3X.... more >>
DBCC CHECKDB -- Any way to email only error reports?
Posted by Garrett at 10/13/2003 12:12:48 AM
Hello,
I'm trying to figure out a way to automatically receive (via email)
the results of DBCC CHECKDB, but only when errors are found.
Currently, the best I can do is get a report every time it runs, even
when no errors are found.
Any ideas?
Thank you,
Garrett... more >>
|