all groups > sql server programming > september 2004 > threads for sunday september 12
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
Connect To SQL Sever From UNIX
Posted by Ragugct at 9/12/2004 10:51:07 PM
Hi,
I need to connect to SQL server from UNIX machine.
Could any one of you explain the configuration details that needs to be done
in UNIX machine to connect to SQL server and provide some sample script which
will be used to connect to SQL server from UNIX.
Thanks,
Ragunathan R
... more >>
Create Index on BIT column?
Posted by Lucas Tam at 9/12/2004 9:23:19 PM
I read on Google Groups that you can create an index on a BIT column in SQL
Server 2000.
I don't have the option to create a BIT column in Enterprise Manager...
Do I have to create BIT column indexs through Query Analyzer?
Thanks.
--
Lucas Tam (REMOVEnntp@rogers.com)
Please delete "... more >>
Elapsed years
Posted by payyans at 9/12/2004 8:33:02 PM
Hi,
SQL Server 2000
-------------------
I have a requirement to calculate the elapsed years by comparing two
datetime columns.
The following SELECT statement works for most of the rows
select (cast(date1-date2) as int)/365 as [elapsed years] from mytable
But, it returns the value 1 ins... more >>
Trigger Problem
Posted by PaulJS at 9/12/2004 7:43:03 PM
Hi:
I'm fairly new to SQL Server and am having some trouble creating a trigger I
need to trap Inserts and Updates in a table.
The table ("tblVendor"), has a field "vend_name". Unfortunately, due to
legacy data issues, there are some Vendor names in the Vendor table that are
duplicated. ... more >>
Looping
Posted by SusieQ at 9/12/2004 6:54:35 PM
I have this piece of code.
<%
If request("action")="add" Then
Snum=request("txtStartNum")
Endnum=request("txtEndNum")
Call openDB()
do while snum<=endnum
strSql="INSERT INTO tstBarCode(NPID,barcode,expdate) " _
& "VALUES(999, '"& snum &"','"&request("txtExpDate")&"' )"
s... more >>
temporary table
Posted by Frank Dulk at 9/12/2004 4:06:59 PM
I use a database SQL SERVER 2000, version MSDE, and when I create a store
procedure that contains a temporary table the same it doesn't come back
registrations. However, when I order insert the data stored in the table
temp of SP in a permanent table of BD, there everything well. What should do
... more >>
Identity Field Inserts
Posted by David Smith at 9/12/2004 3:23:13 PM
Hi, trying to use more SQL commands from within Delphi, I am using a
customer table with an ID Identity field, and was trying to write a simple
SQL procedure that inserted a new customer record and returned the new ID
field. Does anyone know how to pick up the newly inserted records Identity
fie... more >>
Numeric Truncation
Posted by goaler at 9/12/2004 1:45:09 PM
I am executing a stored procedure with parameters comming in as
41.1235
1.92141
They are defined as NUMERIC(16,4) and when I evaluate teh results i see that
everything is set to a rounded two positions. I have sent the paramters in
as VARCHAR to verify that the values are received by the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Duplicating table
Posted by Oded Kovach at 9/12/2004 12:41:37 PM
Hello there
I have some table that i would like to duplicate it with another name and
have all its properties including indexes
can someone help me on it?
... more >>
Mandatory participation
Posted by john at 9/12/2004 11:17:53 AM
If i have a constraint like this:
CREATE TABLE table1 (
.......
CHECK ( (SELECT a FROM table1) = (SELECT a FROM table2) )
Can it be used to represent Mandatory participation of 1 side in a 1:N
relationship ? Assuming both side of 1:N is Mandatory.
And create statement for table2 ... more >>
Problem Writing SP
Posted by Wayne Wengert at 9/12/2004 9:17:31 AM
I am trying to create an SP that returns a result that contains both some
static fields and some aggregate Counts. (See my attempt so far below)
I am able to get the initial static values into the temp table but I am not
able to figure out how to add the Count values to that table? The Regionals
... more >>
Can you return an output parameter when using dynamic sql?
Posted by Chris at 9/12/2004 2:30:29 AM
I've got a sp that uses dynamic sql because the table is passed as a
parameter. The sp is an insert which returns the scope_identity value after
the insert. The problem is in ado.net the output parm is not returned in the
output variable. Here's the sql that's just returning a single cell ID, but... more >>
|