all groups > sql server programming > october 2005 > threads for saturday october 15
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
What is the data type??
Posted by Tim at 10/15/2005 8:28:02 PM
Can I add .rft files as values into a SQL Server table? If so, what kind of
the data type I would assign to them. Similarly, can I add sound files (i.e.
..wav) as values into a SQL Server table? If so, what kind of the datatype I
should assign to them.
Thank you.... more >>
Total No. Of Records!
Posted by Arpan at 10/15/2005 7:03:36 PM
Apart from using COUNT, are there any other ways to find the total no.
of records existing in a DB table?
Thanks,
Arpan
... more >>
Create @tablename gives syntax error
Posted by PeterK at 10/15/2005 6:42:47 PM
I am trying to create a table named "salesfacts" as follows:
declare @tname1 as char(30)
set @tname1 = 'SalesFacts'
CREATE TABLE @tname1 ([cuid] [char](15)....
and get an error : Incorrect syntax near '@tname1' ...
The error is related to the variable name - and not to what follows it, i.e. ... more >>
Isolation Level!
Posted by Arpan at 10/15/2005 5:23:53 PM
The topic 'Isolation Levels' in BOL states that "The level at which a
transaction is prepared to accept inconsistent data is termed the
isolation level. A lower isolation level increases concurrency but at
the expense of data correctness. Conversely, a higher isolation level
ensures that data is... more >>
I can't view the list of databases on remote site
Posted by lwoods at 10/15/2005 4:57:25 PM
I have been asked to work on a remote site. I started my EM and tried to
connect to the SQL server on the remote site. I connected just fine (server
had userid/password). But when I open the "Databases" folder I get a "(no
items)" instead of a list of databases. BUT, when I view other folde... more >>
1=1
Posted by Arpan at 10/15/2005 1:36:52 PM
Assume that a SQL Server database table, named tblProducts, has the
following 4 columns:
PID - int IDENTITY
PName - varchar(50)
PDesc - varchar(200)
PPrice - money
Also assume that this table has 100 records & the name of 1 of the
products is, say, Topaz.
When I execute the following q... more >>
join table with procedure?
Posted by Keith G Hicks at 10/15/2005 9:16:19 AM
Is it possible to join the results of a stored procedure with a table?
SELECT field1, field2, field3 FROM tblCustomer INNER JOIN (exec spTest
'inputvar' AS SP) ON tblCustomer.CustID = SP.CustID
Thanks,
Keith
... more >>
getting the date
Posted by ari at 10/15/2005 7:43:01 AM
hey all,
when i use the GetDate() function it puts the time in there as well: how do
i get just the date?
thanks,
ari... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Use extended stored procedure on shared sql server host?
Posted by Phil C. at 10/15/2005 12:51:31 AM
Hi. I'm using a web host with a shared asp.net and shared sql server.
Is it possible to implement an extended stored procedure on the shared sql
server, or
is this generally impossible for most shared hosts??
Thanks,
Phil
... more >>
**sum**
Posted by R-M at 10/15/2005 12:00:00 AM
Hi
I've follwoing data in table1 in SQL server2000,and I want to get the
result as below:
table1 result
Id Qty
---------------- -----------------------
1 500 1 500
2 502 2 1002
3 400 3 1402
4 140 4 1542
how is it possible in select statement?
Any help would be thankf... more >>
transactions
Posted by simon at 10/15/2005 12:00:00 AM
I call procedure inside query analyzer:
declare @result int
begin transaction
exec @result=dbo.s_procedure 216,'admin',null,195,2
if @@trancount>0
rollback transaction
procedure is something like:
if @@trancount=0
begin transaction
......do something
if @@error<>0... more >>
|