all groups > sql server programming > october 2007 > threads for saturday october 6
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
Using Substring for grouping the new file.
Posted by NT at 10/6/2007 1:14:18 PM
Hi,
Please help...!
I have a Test_Name then I need to break all the texts from after the word
'cycle' to store into the new field as Comments. Please see example below
Test_Name: 73025-003_BnDcycleRestart-01-045
Here is my SQL statement:
SUBSTRING(Test_Name, CHARINDEX('cycle', Test... more >>
DateTime columns in SQLexpress and .NET 2.0 DataAdapter.Update()
Posted by Bill at 10/6/2007 10:31:01 AM
I am having a problem with DateTime columns in SQLexpress and .NET 2.0
DataAdapter.Update().
I create MyDataTable containing a copy of the data in a table on the server.
The table contains one DateTime column.
DataTable column data type is System.DateTime.
SQLexpress column data type is ... more >>
How to receive selected field in a stored proc in calling stored proc
Posted by bz at 10/6/2007 5:35:15 AM
Hi,
I have a stored proc that contains a sql that retirns a single value
Like
ALTER PROCEDURE [dbo].[usp_GetAdminGroup]
AS
SET NOCOUNT ON
SELECT group_id as AdminGroupID
FROM Groups
WHERE (group_admin = 1)
I can call it from C# with ExecuteScalar and it returns the selected
val... more >>
I've problem with Insert
Posted by Bpk. Adi Wira Kusuma at 10/6/2007 2:01:52 AM
Create table TA (
RecID int IDENTITY (1, 1) Primary Key,
C1 char(1)
);
Create table T1 (
RecID int Primary Key,
FName varchar(50),
FAdrr varchar(50)
);
If I want to add a new record, So I do proccess like it:
SELECT TOP 1 @H=RECID FROM
TA WHER... more >>
Problems with smalldatetime
Posted by Bpk. Adi Wira Kusuma at 10/6/2007 1:42:27 AM
Create Table T1 (
IDREC int Primary Key,
FCTIME SMalldateTime
)
Then I enter data like it;
IDREC FCTIME
-------------------------
1 1/1/07
2 1/8/07
3 1/11/07
4 1/21/07
And I have other table with structure
Cre... more >>
Is it possible to recreate my database from a myDatabase.BAK file?
Posted by trint at 10/6/2007 12:45:17 AM
I'm working from home this weekend and have somehow deleted
my (local) database from my dev computer to test my c# code with.
All I have on my dev computer is .BAK files I've previously made.
Is it possible to restore the actual database and all 136 tables from
my backups in the .BAK format. So ... more >>
Running Balances
Posted by Geoff Schaller at 10/6/2007 12:30:57 AM
There might not be an answer to this but I am curious. We have a
transaction system which is kind of generic header/detail. The header
record has these columns:
dDate - Transaction Date
Agent - Payee/Payer party for the transaction (many)
Tranno - Transaction Number (unique)
Details - Tran... more >>
|