all groups > sql server programming > february 2004 > threads for sunday february 29
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
Select next value from a group
Posted by Bent Lund at 2/29/2004 10:29:05 PM
Hello, I have a problem getting the value I want here ;-)
I have a view looking like this:
ITEM_SEQ_NO int unique ID for item
CAST_ID varchar(20) Batch ID for n ITEM's
STEP_NO int step in production 1-20
STEP_ORDER_NO int order of item within step
Data could look like this
Ite... more >>
Convert to datatype money
Posted by Aleks at 2/29/2004 10:27:57 PM
Hi,
This might be an easy one, just cant find how to code it.
I have 2 variables which I want to add (strBalance and strLink) the values
could be: 500+300 = 800.
The problem is that my code is instead adding them like this: 500+300 =
500,300
Below is the code.
------------------------... more >>
Help with vars.
Posted by Aleks at 2/29/2004 10:26:35 PM
Hi,
This might be an easy one, just cant find how to code it.
I have 2 variables which I want to add (strBalance and strLink) the values
could be: 500+300 = 800.
The problem is that my code is instead adding them like this: 500+300 =
500,300
Below is the code.
------------------------... more >>
dynamic numbering of results
Posted by Jarrad at 2/29/2004 10:01:08 PM
am trying to get an sql query that will auto number rankings for me
The problem is as follows
Through a number of queries I can load a temporay table with data e.
Site_ID,Total_Sales,Sales_Dept,Sales_Chip
I need to end up with
Site_ID,Total_Sales,Ranking_TotalSales,Sales_Dept,Ranking_Sales_De... more >>
IDENTITY Problem
Posted by Anand at 2/29/2004 9:59:28 PM
Hi all
If the IDENTITY Column exceeds the limit is it possible to
reset automatically.
It should be done automatically at the table level.
Any answer??
Thanks in advance
Anand.
... more >>
How to ensure that client connects to server throug the internet instead of LAN
Posted by Oscar at 2/29/2004 9:54:31 PM
I am programming a VB-SQL Server 2K application which connects the clients
to the database through the internet. While I am testing the application
within a LAN in which the database server as well as the client connect to
the internet through a router I can't ensure that the client connects to t... more >>
Help. I broke an Stored Procedure
Posted by is4fun2k NO[at]SPAM yahoo.com at 2/29/2004 7:54:07 PM
Hello,
I just realized I made a BIG Mistake. I was working
"Creating/Updating" several stored procedures. I ran an Alter on a
stored procedure thinking it was another stored procedure. So I
changed it completely.
Is there a way I can recover the previous stored procedure code?
If it helps t... more >>
stored procedures
Posted by anna at 2/29/2004 7:36:10 PM
I am trying to execute the foloowing as a stored procedure, however I keep receiving error messages indicating that the temp tables do not exist... Is this someting inherent in SQL Server sp'
USE ATReportin
G
IF EXISTS (SELECT name
FROM sysobjects
WHERE name = N'usp_insertBillable... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Convert to DateTime
Posted by Elmo Watson at 2/29/2004 7:01:33 PM
Unfortunately, I've inherited a database with a field which has been adding
dates and times, but it's been using an nvarchar field .
Most of the strings are in this format:
Mon Oct 13 12:58:00 2003 EST
but of course, there are still strings that will convert to date and time
more easily li... more >>
Any help with tihs would be great....
Posted by Darren Clark at 2/29/2004 4:22:21 PM
I have the following table....
it stores points ,, as in currency type points.. or credits.. whatever you
want to call it.
CREATE TABLE [Points] (
[points_id] [numeric](18, 0) IDENTITY (1, 1) NOT NULL ,
[type_id] [numeric](18, 0) NOT NULL ,
[action_id] [numeric](18, 0) NULL ,
[mem_id] [... more >>
performance consideration
Posted by Guy Brom at 2/29/2004 4:10:57 PM
Hello,
I have a 1 million user db, where only a fraction (about 20,000) actually
logged on daily.
Every user is authonticated on each to a session value he received upon
logging-on. users are logged out if they have invalid session value (hack
attempt) and/or passed N number of minutes sinc... more >>
disappearing foreign key constraints
Posted by vickihann NO[at]SPAM abcsoftware.co.nz at 2/29/2004 3:14:32 PM
We are using sql server 2000 and have found that some of our
constaints between tables are no longer there. This has happened a
few times over the past few months with different tables. Any ideas
as to why this might be happening?... more >>
Run-time error 2191 - inconsistantly appearing
Posted by vickihann NO[at]SPAM abcsoftware.co.nz at 2/29/2004 3:10:42 PM
We have a report that has successfully been previewed with the change
of record source code. After changing the SELECT statement in the
record source this error appears.
Please help.... more >>
Very Simple Stored Proc with parameter problem when called from simple .net app
Posted by lanpheer NO[at]SPAM hotmail.com at 2/29/2004 1:22:14 PM
I'm a bit embarassed to have this problem, but nonetheless, I've tried
all I can think of. I can't seem to call a stored proc from a .net
app that has a parameter. Stored procs with no params work fine, AND
calling the stored proc from SQL Query Analyzer works fine. I'm sure
there is somethin... more >>
architecture problem
Posted by (doubtfulinfo NO[at]SPAM yahoo.com) at 2/29/2004 1:10:17 PM
first of all i am a student, so i want you to be a little mercy, because this is soo important to me !
second i got a real project that archieves the materials of a club in my univercity..
it will store the related information of photographs, CDs, cassettes, etc.. in one computer( that should be t... more >>
i am in a serious trouble...
Posted by (doubtfulinfo NO[at]SPAM yahoo.com) at 2/29/2004 1:07:10 PM
first of all i am a student, so i want you to be a little mercy, because this is soo important to me !
second i got a real project that archieves the materials of a club in my univercity..
it will store the related information of photographs, CDs, cassettes, etc.. in one computer( that should be t... more >>
CountrySelector control
Posted by versteijn NO[at]SPAM 538mail.nl at 2/29/2004 9:36:21 AM
Hello all
I am developing a CountrySelector control (which I would like to share
with anyone), but I am quite a newby in this custom control area.
You can find it at:
http://home.kabelfoon.nl/~juliusd/vbnet/CountrySelector.vb
Some questions I have are:
- In what event should the items be... more >>
Merge Similar rows - Help needed
Posted by CoolHandSid at 2/29/2004 6:51:06 AM
Hi
I'm trying to a merge similar rows in a table into a single row and put the
in a new table
Example:
This is my input tabl
Table
ID A B
-----------------------
1 jk kl b
2 sd we o
3 io po k
1 ui gh e
2 kl re o
1 qw kj n
My output table should look like thi
Table
ID A1 B... more >>
RAISERROR descriptions
Posted by Ivar Svendsen at 2/29/2004 6:41:07 AM
Hello
I am connecting Access 2002 to a Microsoft SQL 2000 server.
When I try to run a stored procedure that returns errors, I can only read the error codes, and not the description of the error. Here is some example code that I am using
CREATE PROCEDURE dbo.Tes
A
BEGI
RAISERROR ( 'Test', 16,... more >>
Selecting Nulls
Posted by James Proctor at 2/29/2004 2:26:06 AM
Hi, I need to select all the Null values in a coloumn but cant work out how to, ive tried all sorts such as SELECT * FROM Kits WHERE KitExpiryDate = NULL and lots of other combinations but it doesnt seem to work. Is there a special way to select NULL values. I hope someone can help me out
Regard
... more >>
Union Query Problems
Posted by John Berman at 2/29/2004 1:40:26 AM
Hi
I have two querys that work fine so I joined them with a Union and I get
The text, ntext, or image data type cannot be selected as DISTINCT.
So I used union all and now get
All queries in an SQL statement containing a UNION operator must have
an equal number of expressions in their t... more >>
SQL serverdown...OLEDB-SQL driver timeout?
Posted by Anonymous at 2/29/2004 12:22:15 AM
I am using OLEDB-SQL (ADO) under MDAC 2.7 and would like to know if there is
any way to change the timeout period the driver takes to search for the SQL
server before returning an error. Of most importance to me is a short
timeout period, I.e. an error is returned quickly if the SQL server is dow... more >>
|