all groups > sql server programming > january 2007 > threads for wednesday 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
BULK insert
Posted by lord.fist at 1/3/2007 10:26:28 PM
I am trying to do bulk insert 5000 rows into a simple table that has:
id pk identity, col_text nvarchar(500)
How do i do bulk insert but to only insert data that is not duplicated
eg. if i have already in table 'some_text' and bulk inserting
'some_text' that the text is not inserted and al... more >>
How to omit redundance?
Posted by Nassa at 1/3/2007 9:52:56 PM
Hi all,
How can I omit the redundance in the query bellow?
---------------------------------------------------------------------------------
SELECT dbo.StockTbl.GoodSyscode, nassa_1.InvoiceDate AS LDate,
nassa_1.LFee
FROM dbo.StockTbl INNER JOIN
dbo.nassa() ... more >>
Formatting a date
Posted by BobRoyAce at 1/3/2007 9:40:08 PM
I have a table that has a datetime field with values like 2006-12-16
01:44:07.787. I want to run a query that returns the date without the
time (e.g. 2006-12-16). I would also like to know how to get back the
date with a default time (e.g. 2006-12-16 00:00:00.000). How could I
accomplish these t... more >>
How to do a select statement from Linked servers.
Posted by Stephen K. Miyasato at 1/3/2007 7:49:50 PM
I have two servers on my machine
MDsync3
MDsync3\OFFICEMEDIC
Select * from OfficeMedic.officeMedicData.patientInfo
The statement above give me the correct Select Data.
I'm trying to do a select statement from the MDsync3 instance
I tried the following to create a linked server
Execu... more >>
t-sql statement
Posted by Joe K. at 1/3/2007 5:31:01 PM
I would like to create t-sql statement from the Drives table listed below,
if the Disk_Space_Low field is equal 1 then send alert message with Drives
table data listed below.
Please help me with this task.
Table Drives
Drive FreeSpace TotalSize Percentage Disk_Space_Low
C 10000 19... more >>
performance problem
Posted by Roy Goldhammer at 1/3/2007 4:40:25 PM
Hello there
I have some performance problem.
therefore i've run the profiler for time to time on database which isn't
activated
i got two messages at all times:
SELECT N'Testing Connection...'
go
EXECUTE msdb.dbo.sp_sqlagent_get_perf_counters
go
what is that means?
... more >>
Shrinking of a LOG file.
Posted by fakeDBA at 1/3/2007 3:59:13 PM
Does Shrinking of a Log file when the DB is used by the users .....
cause a problem to the users in the availablity to the DB ...
I mean lets says of the user issues a select query & I run the DBCC
Shrink file ... would the user get an erorr or some message .... I mean
would he have to wait ti... more >>
SQL SERVER DTS Programming
Posted by myrights99 NO[at]SPAM gmail.com at 1/3/2007 3:43:33 PM
I need help on VB Script or better way, what i am trying to do.
I have more than 75 TXT files & this all 75 TXT files consists &
follows naming convention like AAAAANames.txt, BBBBBAddress.txt,
CCCCCTellno.txt, DDDDDProduct.txt.
I want to IMPORT DATA from this files to SQL Server 2000 Data... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Replace Function in Select Into query large varchar field
Posted by todd.boutte NO[at]SPAM gmail.com at 1/3/2007 2:33:46 PM
Hi,In SQL 2005, I'm doing a "select into" to create a table. In the
original table, there are two fields that are being checked with the
Replace function. When I execute the SQL below, the destination table
creates fields of Varchar(8000) for any field which uses the replace
function. Has any... more >>
SQL How-to question
Posted by davepkz NO[at]SPAM hotmail.com at 1/3/2007 2:14:39 PM
Suppose I have the following data:
student quarter grade
------- ------- -----
Jones 1 A
Jones 2 B+
Jones 3 A
Jones 4 B-
Smith 1 B+
Smith 2 B
Smith 3 B
Smith ... more >>
create function problem
Posted by Roy Goldhammer at 1/3/2007 1:33:16 PM
Hello there
I've create function that should return more then one value. there fore i
used function that returns table.
When i placed the function in a form close with another table that one of
the fields in the table is the function parameter i got this error:
Server: Msg 155, Level 15... more >>
Search string for a UPPERCASE character
Posted by morten NO[at]SPAM 71.net at 1/3/2007 11:26:28 AM
How is it possible to select rows where the content of a column has an
uppercase character?
I have a table with a single column and three rows. The column content
of one of the rows has an uppercase character that I want to convert
to lowercase.... more >>
getting last action
Posted by Roy Goldhammer at 1/3/2007 10:59:22 AM
Hello there
One of the users has run query that delete some records in one of the
tables.
Is there a way to know how many records has been deleted?
... more >>
sp to show table structure
Posted by SQL Ken at 1/3/2007 10:44:11 AM
Hi Folks,
What is the command (sp) to show the table definition.
something like this structure:
table_MyTable
MyName (varchar(30))
MyID (INT)
THANKS
... more >>
*Unique* items query
Posted by Brian Ackermann at 1/3/2007 10:30:07 AM
Hi all,
The following code is a simplified subset of an operation I'm working
on. The SELECT statement puts out incorrect data. I need to modify
this query to return :
PartNumber Customer
--------------------------------------
B 2
D 4
... more >>
Ambiguous Foreign Key (FK)
Posted by Eric Humphrey at 1/3/2007 9:55:24 AM
Given the below tables (simplified for example), what would be the best
way to remove the ambiguous foreign key relationships from dataSecurity?
This structure saves space since the security descriptor is the same for
all data items, but since the data_id can refer to an item in a number
of ... more >>
SELECT query from linked tables
Posted by gordon_gao NO[at]SPAM och.ca at 1/3/2007 8:25:42 AM
I have two tables ARSIA and ARSIAO. The simplified tables are shown
here.
ARSIA:
GROUPID IDCUST AMTDUE
RENT 340943 120
PARKING 340943 30
RENT 450001 175
RENT 841190 290
PARKING 841190 40
RENT 950100 500
ARSIAO
GROUPID IDCUST O... more >>
FK Relationship question.
Posted by tzvikaz NO[at]SPAM gmail.com at 1/3/2007 6:10:27 AM
Hi,
I have the following Tables:
Table: MachineModels
PK PK
version color comments
1.01 brown --
1.34 brown --
1.34 black
Table: Machines
PK
ID model
1
2
3
I would like to somehow define a relationship bet... more >>
ssis issue
Posted by gess6321 at 1/3/2007 12:39:29 AM
I am trying to create a job in ssis for a package I created. I able to
execute the package, but get the following error when I run the job
[298] SQLServer Error: 22046, Encryption error using CryptProtectData.
[SQLSTATE 42000] Anybody have any idea how to get around this?
... more >>
|