all groups > sql server programming > january 2007 > threads for saturday january 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
assist with query
Posted by Big D at 1/13/2007 10:42:50 PM
I created a DTS package to load all the event logs from many different
sites. What I am trying to accomplish is figuring out how many computers are
at specific sites based on received event logs loaded. The issue I am having
is my query below is doing partially of what I want. I get all the sy... more >>
How to use stored procedures for controlled data modification?
Posted by Ian Boyd at 1/13/2007 9:58:32 PM
i want to try to use stored procedures to allow updates to a table; but i've
never seen a reasonable way to do it.
The syntax that someone would call is:
EXECUTE UpdatePatron @AccountNumber=12345, @ZipCode=28570
or
EXECUTE UpdatePatron @AccountNumber=12345, @Lastname="McDonald",
@Res... more >>
Column for storing any kind of text?
Posted by brett at 1/13/2007 8:53:19 PM
I'd like suggestions about the security of storing any type of text in
a varchar(MAX) column. I have web browser based application with one
section that is basically Notepad. People can paste what every kind of
text they like. There isn't any texturizing on my part. It goes into
a varchar(MA... more >>
return value from insert statement
Posted by Eric Effer at 1/13/2007 5:55:15 PM
Hi
I am a newbie with vb.net. I am working with vb.net 2.0 and sql server 2005.
I am trying to get the return value from my insert stored proc.Does anyone
know how to do this?
thanks
E
... more >>
what is the scope of command 'set datefirst'?
Posted by Jack Zhong at 1/13/2007 5:50:55 PM
I set the datefirst to the same MS SQL Server 2000 from two computers
at the same time. For example, on computer A, I set the value with 'SET
DATEFIRST 1' and on the other with 'SET DATEFIRST 2' on computer B
respectively, then execute 'SELECT @@DATEFIRST', computer A returns 1
and computer ... more >>
Help with a query please
Posted by Robert Dufour at 1/13/2007 5:27:11 PM
I`m not multi posting, my messages end up as replies to others nd can`t
figure vout why, so here
again, with profound apologies.
I have a table that contains the start and end datetime of a series of
transactions
TransId Pk Int
Channel Int can be 1 2 3 or 4
Started datetime
Ended datetim... more >>
query help
Posted by Robert Dufour at 1/13/2007 5:15:13 PM
I have a table that contains the start and end datetime of a series of
transactions
TransId Pk Int
Channel Int can be 1 2 3 or 4
Started datetime
Ended datetime
I need to obtain the number of transactions,min duration, the max duration,
the average duration of the transactions, and I nee... more >>
why this is not working
Posted by lara169 at 1/13/2007 3:25:54 PM
ALTER PROCEDURE TestSps @doc NTEXT
AS
DECLARE @idoc INT
EXEC sp_xml_preparedocument @idoc OUTPUT, @doc
SELECT *
FROM OPENXML (@idoc, '/ROOT/Customer',1)
WITH (CustomerID varchar(10),
ContactName varchar(20))
GO
DECLARE @vc1 nVARCHAR(100), @vc2... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How can I return an effective date as a start date and an end date
Posted by Dave at 1/13/2007 1:27:00 PM
I have a table with an id column and a date column. Each id can have
multiple dates associated with it.
I need a query on this table that will return 3 fields: id, start date and
end date.
So what I am trying to do is turn the date column into 2 different fields
dpending on their val... more >>
vb2005 applicaion conflicts with SSMSE when connect to local SQL server express 2005?
Posted by red_tea at 1/13/2007 12:03:06 PM
Here is the situation:
I have SQL server express 2005 installed on my pc as instance
SQLEXPRESS.
I have created a Visual Basic applicaion with the following as
connection to the SQL server express 2005 running on the same PC:
*****************************************************************... more >>
Help - made stupid mistake on install of 2005
Posted by Sandy at 1/13/2007 11:43:00 AM
Hello -
I am having a problem with 2005 seeing the 2005 instance of Sql Server. I
am also running 2000.
With thanks to Dave, Erland and Roger (post of 1/12/05) and a little fishing
on my part, I realized both instances are named the same. (I was really
tired when I installed it!)
Is... more >>
cross join from two tables where primary key of each table does not exist in a third table
Posted by mjweiner NO[at]SPAM gmail.com at 1/13/2007 10:50:24 AM
Having a little problem coming up with a solution for my email
newsletter management application. I have three tables:
emails
---------------------
emailId int
email char (100)
sentEmails
---------------------------
sentEmailId int
newsLetterTextId int
emailId int
dateSent da... more >>
Modifying system tables in SQL Server 2005
Posted by Prasad at 1/13/2007 4:37:06 AM
Hi,
I wanted to know if there is a way to modify the system tables in
SQL Server 2005, and if yes a way to audit these actions.
I tried selecting from the system tables (using a DAC connection),
it allows me to do so, but the profiler doesnt report on this action.
Table queried on :... more >>
How to combine sums of two separate queries
Posted by Coop at 1/13/2007 2:25:00 AM
Newbie needs help with basic query...
I have two tables each with a numeric field containing financial data. (The
numeric field has a different name in each of the two tables if that
matters.) I need to select a subset in each table, sum on the numeric column,
and then combine the two sums... more >>
Necessary Help-Problem with creating view index
Posted by Nassa at 1/13/2007 12:03:15 AM
I try to make a view index but I can't and it gives be the bellow
error:
------------------------------------------------------------------------------------------------
Create failed for Index 'index1'.
Additional information:
-An exception occured while executing a Transact-SQL statement or
... more >>
|