all groups > sql server programming > january 2004 > threads for saturday january 3
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
set tab2 col1 to tab1 col1
Posted by Petrina Lessard at 1/3/2004 11:36:14 PM
Hi!
I have two tables. I want to update the data in one table
to be the same as the same col in the other table.
ex:
tab1 tabl2
col1 col1
col2 col2
col3 col3
I want tab2 col1 set to be the same as tab1 col1.
How can I do this?
Thanks,
Petrina... more >>
returning id of new row
Posted by Brian Henry at 1/3/2004 10:03:05 PM
What is the best way to do this? (in a stored procedure of course) this is
how i was thinking, are there any problems with this? here is my pseudo code
for the stored proc...
* Data recieved through paramaters
* Select top 1 ID from table ordered in descending order save into a temp id
+ 1 so... more >>
Developing an extended stored procedure in C.
Posted by sam at 1/3/2004 5:42:00 PM
Does anybody has any code or can help how to write a
extended stored procedure in C.
Any help is greatly appreciated.
... more >>
transactions(I took it from a post)
Posted by priya at 1/3/2004 4:49:37 PM
The idea is that a transaction is atomic, either all or
nothing is
committed, not only half of the transaction. However,
with SQL Server
this requires some care, since the error handling is poor
in SQL Server.
I want to know what care I should take in transactions
for poor error handl... more >>
do you have encryption algorithm?
Posted by haode at 1/3/2004 4:29:12 PM
don't you have an encryption algorithm ?
... more >>
Not getting appId when the email and password are correct???
Posted by dave at 1/3/2004 2:28:19 PM
CREATE Procedure GetSingleUser
(
@Email nvarchar(100),
@Password nvarchar(20),
@UserID int OUTPUT,
@appId int OUTPUT
)
AS
SELECT
@UserID=UserID
FROM
UserInfo
WHERE
Email = @Email
AND
Password = @Password
IF @@Rowcount < 1
BEGIN
SELECT
... more >>
Recommendation...
Posted by GTi at 1/3/2004 12:39:10 PM
Is it prefered to have one table containing documents or is it better to
split it up in several tables?
Say I have about 5000 clients and each client owns about 300MB of documents
in the table.
That is about 1 500 000 MB.
Is it a bad solution to have one large table (speed, crash etc) ?
Or is... more >>
Table type UDF says "must declare variable..."?
Posted by jonahturnedwhaler NO[at]SPAM yahoo.com at 1/3/2004 11:57:50 AM
Books online says this works:
CREATE FUNCTION LargeOrderShippers ( @FreightParm money )
RETURNS @OrderShipperTab TABLE
(
ShipperID int,
ShipperName nvarchar(80),
OrderID int,
ShippedDate datetime,
Freight money
)
AS
BEGIN
INSERT @OrderSh... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
simultaneous operation on 2 table of a database
Posted by liu at 1/3/2004 10:58:50 AM
I have a database containing 2 tables,
GOODS TABLE
ID(int), Name(nvarchar), Storage(int), Price(money)
BUSINESS
ID(int), Name(nvarchar), Number(int), Price(money)
When some client makes a business with us, Business Table will be add a
record and reduce the number from Goods Table. ... more >>
Query Help
Posted by Peter Newman at 1/3/2004 8:59:38 AM
I have two tables, tableA and tableB
TableA contains Clients address details and is
referanced with a unique field ClentRef
TableB contains Clients Personal details and is
referanced with a unique field ClentRef
Tablea.Clientref should equal TableB.ClientRef
How can i run a query ... more >>
Is this psossible to create this rule?
Posted by Rita at 1/3/2004 7:21:10 AM
I have to write a rule for a postcode in SQL server7 so that it is in the correct format.
the following need to be expressed
1. contain a space
2. be either 6, 7 or 8 char long but no more than 8 or less than 6
3. the left hand of the space must start with a letter and not be less than 2 char ... more >>
dynamic query building
Posted by kmr at 1/3/2004 6:36:08 AM
I need to build a query that accepts input from a MS Access Project - this works fine for one variable... but I need to be able to accept multiple values for a field... for example, I have variables called @animal1, @animal2 ... @animal5
I need to make a query that says
where animal = @animal1 or ... more >>
xp_sendmail
Posted by Shonet at 1/3/2004 4:21:49 AM
Is xp_sendmail suppose to be used predominately for DBA
and system admin tasks, or can it be built into an
application to send out notification emails.
If not, is it possible to create stored procedures to
send notifications within a sql server database?
Thanks,
Shonet... more >>
Unicode data storing in SQL Server
Posted by Seshadri at 1/3/2004 3:48:05 AM
When we update a unicode value in SQL Server database that
has datatype as nvarchar, we use the prefix "N" before the
unicode data and it stores the data in the respective
language. Is this the correct way to store unicode value
in SQL Server database? In ORACLE, the unicode value is
store... more >>
Cross-Tab
Posted by Jim at 1/3/2004 12:46:06 AM
Hello
I want to design a cross-tab stored procedure which will convert
School Total Grad
School1 50 0
School1 60 1
School1 55 1
School1 45 1
School2 57 0
School2 60 1
School2 59 1
School2 44 1
To
... more >>
SQL 2000: Get constraints from a linked table??
Posted by Jack Black at 1/3/2004 12:10:17 AM
Hi, all! Using SQL 2000 (latest SP and patches) on two linked servers...
How does one go about getting a resultset of the constraints on a given
table on a linked server (ala sp_helpconstraint)??
Help!! :) Thanks much!
Jack
... more >>
|