all groups > sql server programming > march 2006 > threads for tuesday march 21
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
for some reason when i deploy my C# application on windows 2003 occasionaly rdr[0].ToString() hangs where rdr is a System.Data.SqlClient.SqlDataReader
Posted by Daniel at 3/21/2006 11:36:40 PM
for some reason when i deploy my C# application on windows 2003 occasionaly
rdr[0].ToString() hangs where rdr is a System.Data.SqlClient.SqlDataReader.
Is there a fix for this? is my visual studio.net out dated?
... more >>
Table variables instead of cursors
Posted by Mark at 3/21/2006 11:01:43 PM
Hi Folks
I'm using SQL 2000 and migrating functionality from an Access/VBA frontend
to the server. We have various (nested) triggers that fire stored procedures
and call functions etc. many of which need to cycle recordsets. Being that
@@FETCH_STATUS is global etc. I have as much as possibl... more >>
are System.Data.SqlClient.SqlConnection thread safe? can many threads share a System.Data.SqlClient.SqlConnection instance without any synchronization
Posted by Daniel at 3/21/2006 9:59:19 PM
are System.Data.SqlClient.SqlConnection thread safe? can many threads share
a System.Data.SqlClient.SqlConnection instance without any synchronization?
... more >>
Name part search. Stumped...
Posted by redfoxk NO[at]SPAM hotmail.com at 3/21/2006 9:41:21 PM
/*
I'm having a problem making a select statement to return the
correct results.
Here is an example of what I'm trying to do. Two tables:
@TblNameParts which contains the master list of all the name
parts and the MasterNameID which is a pointer to the master
record.
@TblCriteria which is b... more >>
Identify bulk insert rows
Posted by McGeeky at 3/21/2006 9:31:23 PM
Is there a way to identify which rows have just been bulk inserted in to a
table?
--
McGeeky
http://mcgeeky.blogspot.com
... more >>
Login
Posted by Frank Dulk at 3/21/2006 9:05:11 PM
following, do I work with adp, do I use the safety of the sql server to
authenticate the users, then in my front I do configure the access with my
password, for the item connection of the menu, when do I distribute that
front for each station, (do they use runtime) does the system always suggest
... more >>
To Manipulate with Query Results
Posted by wrytat at 3/21/2006 8:53:08 PM
This should be easy but I just don't remember how to do it. I have a table. I
want to do a select statement query on it, and manipulate with the query
results, such as looping every row of the results. How can I do that? Thank
you.... more >>
How can I do this
Posted by Chris at 3/21/2006 7:00:27 PM
Hi,
How can I list all the days YYYY-MM-DD in a specific year? I am trying to
populate a table with all dates for a specific year.
Thanks... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How can I automate importing tab delimited file into SQL Server?
Posted by Sam at 3/21/2006 6:45:27 PM
Hi,
We import data from our phone system every morning which is a tab delimited
file. I'd like to automate this process. I'd appreciate some pointers on this.
--
Thanks,
Sam... more >>
moving files with t-sql
Posted by Roy Goldhammer at 3/21/2006 5:44:16 PM
Hello there
I buckup my local database on some files.
Afther the backup is done i want to move the files to the server, which is
valume on my windows
is there a way to move files from one place to another with t-sql?
... more >>
select @@servername
Posted by dockwingleong NO[at]SPAM hotmail.com at 3/21/2006 5:18:57 PM
How can I retrieve the server name in MS Access? This is easily done
in SQL Enterprise Mgr by running "select @@servername" but I haven't
been able to find a way to retrieve the SQL server name in MS Access.
Thanks,
-Dock
... more >>
need help with query
Posted by at 3/21/2006 4:22:49 PM
(Simplfied the table structure)
I have 3 tables with data. On table is A_STATUS which has 2 fields, STATUSID
(numeric) and STATUSNAME (TEXT).
1 OPEN
2 WORKING
3 CLOSED
The other table A_MASTER has PROJECTNAME, PROJECTID and STATUSID (usually a
1 for OPEN)
The last table is A_PROGRESS has P... more >>
Why is sysdiagrams considered a User Table when using Information_Schema.tables?
Posted by Marcus at 3/21/2006 2:29:41 PM
I need to get a list of all the user tables of my database. When I
execute the query
SELECT
Table_Name
FROM
Information_Schema.Tables
I get back all my user tables, as well as the sysdiagrams table. I can
exclude it of course from my result set using a WHERE clause, but I am
concerned ... more >>
BCP utility help
Posted by David at 3/21/2006 2:28:19 PM
I want to bcp out the record set in a flat file. I am unable to write the
correct script to do this.
What I am trying to do is build a text comma delimited file by running a
stored procedure say procTest. This bcp command will be executed in a nightly
job.
Please help. ... more >>
How to configure MemToLeave memory option?
Posted by pshroads NO[at]SPAM gmail.com at 3/21/2006 2:12:32 PM
I have been encountering errors on a couple of my SQL Servers and in
researching the problem I think that I may need to configure more
MemToLeave space. I have not been able to find any articles that
suggest how to go about calculating how much MemToLeave I need though.
I use AWE to a fixed 5.... more >>
Closing all open connections/sessions
Posted by MittyKom at 3/21/2006 2:10:29 PM
Hi all
Is there a way to close all open connections/sessions to my db at a certain
time? I have a application that uses a web browser to access my database. At
the end of the day i will have loads of open connections/sessions to my db.
My plan was to run a job or script in the eveing to clo... more >>
what constraint or relationship will disable/prevent deletions on
Posted by Rich at 3/21/2006 1:21:27 PM
Hello,
I need to create a table that will contain one column which will hold unique
Identifiers. I need to make it so that the data cannot be deleted once
written/inserted. I know that there is a way to make a table undeletable. I
just can't remember how. Maybe I need to add an extra co... more >>
sql question
Posted by Nikolay Petrov at 3/21/2006 12:15:59 PM
I have three really small tables, which gave me a lot of headache.
They reside in a MS Access database and a I am accessing them through
ADO.NET(VB).
Can't figure out how to make a "Select" query on them.
These are the tables:
1St - "Transactions"
TransactionID - primary key, autogen
Transact... more >>
Update weirdness in SQL 2005
Posted by Crispix at 3/21/2006 11:41:49 AM
I'm experiencing different behavior in SQL 2005 when running UPDATE
statements. For example, this query returns an error:
update tblContact set userid=11847 where userid=11355
Msg 512, Level 16, State 1, Procedure Trigger1, Line 5
Subquery returned more than 1 value. This is not permitted w... more >>
CLR Security Permissions on a sql 2005 server, service broker
Posted by arn0 at 3/21/2006 10:41:43 AM
A made a brokermethod just like in the helloworld_clr example in de service
broker example dir in sql 2005. The brokermethod receives a message and tries
to deserialize the message body which is a list of customer objects.
But when I try to deserialize I get the following exception.
It’s... more >>
how to limits recors from a UNION query
Posted by StefanoMaind at 3/21/2006 10:40:54 AM
I use SQL2000 and I have a query like this:
select * from TabA where 'somecondition'
UNION
select * from TabB where 'somecondition'
order by 'somefield'
I need to limit maximun number of records from this query; problem is that
maybe query A get a lot of records and query B get few record... more >>
Is primar key/foreign key evil in SQL Server?
Posted by Matthew at 3/21/2006 10:40:21 AM
I worked with Oracle/Sybase before, and I used PK/FK quite often, I had PK
for every table.
Since I started working in SQL Server, I saw serveral big applications (over
2000 concurrent users) don't use PK at all, they just use clustered unique
index and there's no foreign keys either, the int... more >>
Copy files from one server to another
Posted by mecn at 3/21/2006 9:58:42 AM
hi,
I have a sql box under diff domain. I login as sqladmin mapped a network
drive pointed to the dir that I need to copy the files.
I created a job under command prompt---copy /Y z:\*'* \\server2\myfoleder\
If I run it under ms dos ----OK, but running it through sql server job, got
this er... more >>
Help with DBCC CheckTable
Posted by Andrew at 3/21/2006 9:56:33 AM
Hey all,
I ran DBCC CHECKTABLE on a table and recieved this error:
Server: Msg 8970, Level 16, State 1, Line 1
Row error: Object ID 71671303, index ID 0, page ID (1:107056), row ID 0.
Column 'DLANG4' was created NOT NULL, but is NULL in the row.
Server: Msg 8970, Level 16, State 1, Line 1
... more >>
Computed column
Posted by Gnic at 3/21/2006 9:36:33 AM
Hi,
I am trying yo return a set or records by using a SELECT statement, the
table contains a column called CreationDate.
I want to add one more column to the resulting dataset (not to the table),
that value of the column will be 1 if the CreationDate is 1 day before the
current time, 0 ot... more >>
Microsoft Takes the Fight Against Cybercrime Worldwide (eBay Fraud/Phishing)
Posted by tedrichardson9925 NO[at]SPAM sbcglobal.net at 3/21/2006 8:07:23 AM
eBay Fraudsters and Phishers are being taken on by Bill and friends.
http://fraudwar.blogspot.com/2006/03/microsoft-takes-fight-against-cyber.html
... more >>
Introducing The Poorly Designed Management Studio
Posted by The Cornjerker at 3/21/2006 7:51:08 AM
Since Microsoft has remove the ability for developers to design in
Access through ADPs in SQLS2005, I am going to begin my own discussion
on why the Management Studio is poorly designed for developers. If I
am in error on any of these points, please let me know because it could
greatly improve ... more >>
Triggers/Audit Tables
Posted by CSHARPITPRO at 3/21/2006 7:23:10 AM
I have several triggers on my tables that stores data changes into a separate
'audit' table. I just recently found out that there will be constant changes
to the structure of the main table. How can I add the new fields to my
'audit' table programmatically?
Adv-thanks-vance
... more >>
Delete duplicated values in a sql table
Posted by carlospedr NO[at]SPAM gmail.com at 3/21/2006 6:29:43 AM
I need to deleted repeated rows from an sql server table.
I inserted data into a table that has a primary key, identity column,
so the rows aren't exacly identical because of the identity column. the
rest of the data is sometimes repeated i have to eliminate those
repeated records.
I could solv... more >>
Actual size of Getdate()
Posted by Madhivanan at 3/21/2006 6:14:11 AM
what is the actual length of the result returned by getdate()?
When you set the mode Results in text in QA and run this ,
declare @s1 varchar(20)
declare @s2 varchar(30)
set @s1='no'
set @s2='the'
select @s1,@s2
select getdate()
you get the following result
-------------------- --... more >>
update trigger generating some error
Posted by maxzsim via SQLMonster.com at 3/21/2006 6:13:54 AM
Hi,
I have created an update trigger that updates another table's record in
another server but it generates some error message :
Server: Msg 7391, Level 16, State 1, Procedure Usr_Trig_GL53, Line 10
The operation could not be performed because the OLE DB provider 'SQLOLEDB'
was unable to b... more >>
Export database event ?
Posted by Robert Kalophtalmos at 3/21/2006 6:12:58 AM
Hey
I'd like to modify a field in a table when I export my sql server 2000
database to a access db. I would like it to be done between the moment
I launch the process with the Export tool and the the moment the data
is sent to the access db.
Anyone ?
Thanks by advance
... more >>
Backup/Restore MSSQL database from domain host?
Posted by Noozer at 3/21/2006 5:49:59 AM
My domain host provides Windows hosting, including MS SQL database.
Unfortunately it doesn't provide remote connections to their MS SQL server.
I can see no method of retrieving my database structure, or the database
populated with data, from the hosts control panel.
I'm sure that I could u... more >>
select like 'A%' with special charaters (german umlaute)
Posted by migeold at 3/21/2006 3:29:27 AM
Hi,
I'm from Germany where we are used to work with specials characters like Ä,
Ö, Ü.
I want to retrieve all persons from table Person beginning with an A.
Please notice, in Germany following query should retrieve all persons
beginning with an A or the special character Ä:
select * fro... more >>
Sql Server Hangs
Posted by SivaprakashShanmugam at 3/21/2006 2:19:10 AM
Hi
Im using Sql Server 2000 and it has more than three years of data total size
of my Data Base is 19GB in that one table alone i have 40 million records. Im
using ASP.Net C# as front end. Now a days my system hangs very ofently and
once i restart SQL Server it works fine for another a week... more >>
Multiple occurences of same trigger
Posted by Gappage76 at 3/21/2006 1:51:27 AM
I am relatively new to the SQL world (mainframe background) and I have been
experiencing a strange anomaly with a table trigger.
When I have two updates that are made in quick succession to a table that
has an AFTER trigger on it, intermittently only one of the triggered updates
are being w... more >>
Is there a equivalent tool to Oracle HTML DB for SQL Server
Posted by KarenM at 3/21/2006 12:49:35 AM
Oracle have released a free download to enable non-developers without
application development experience to quickly build professional web
enabled applications.
The tool oracle as released for download at this URL:
http://www.oracle.com/technology/products/database/application_express/index.ht... more >>
Passing database names as parameters
Posted by Jules Wensley at 3/21/2006 12:00:00 AM
Hi all,
I posted this yesterday (thanks Uri Diamant), but there has to be a better
solution.
I have a SQL 2005 instance with 4 dbs in it. In three databases, the structure
is identical (data is from 3 seperate companies). Is it possible to access
any of the three databases, from sprocs i... more >>
DBCC Log does not show all the logs in LDF file
Posted by Pushkar at 3/21/2006 12:00:00 AM
Hi,
I am using DBCC Log command to see all the logs in online log file. After
checkpoint these logs disaapear from the dbcc log result as expected.
But when I open the .LDF file using tools available in market to read the
..LDF file, I found that logs before checkpoint are still there in .LD... more >>
Difference in file size of LDf file and backup log file
Posted by Pushkar at 3/21/2006 12:00:00 AM
Hi,
I have seen some strange behavior of SQL Server, but I am not sure whether
it is expected or not.
I had performed large no of operations on about 500 tables in a single
transaction, due which size of LDF is grown to around 10 GB, but when I took
transaction log backup, backup file size... more >>
mY data is lose......
Posted by Bpk. Adi Wira Kusuma at 3/21/2006 12:00:00 AM
When suddenly the power is off, So a lot of my data are lose. But why the
missing data exactly at table master? Though according to my logic, data
which ought to easy to lose is data in table transaction.
But the fact, why the missing data exactly at table master? Can U explain it
to me?
Th... more >>
Replacing column value on insert
Posted by Markus Eßmayr at 3/21/2006 12:00:00 AM
Hello SQLServer-specialists!
I'm running a database which contains on table, where the customer is
allowed to import data into.
This table also has a column, which the customer should set to his name, so
that you know who imported the record.
The problem is, that the customer is not restric... more >>
how to retrieve a row by specifying row number
Posted by supriya at 3/21/2006 12:00:00 AM
Hi,
Is there any sql command to retrieve a particular row by specifying its
row number.
... more >>
disconnected recordset update causing strange foreign key behaviour
Posted by Robin Hammond at 3/21/2006 12:00:00 AM
I would appreciate any ideas on this. (I posted this to an ADO group earlier
but have not seen anything back).
I have 2 disconnected ADO recordsets. At the db, these refer directly to
tables
1 and 2. Table 2 has a primary key matching Table 1 and a foreign key set up
for delete and update c... more >>
CREATE TRIGGER in BOL dun understand IF UPDATE (column)
Posted by maxzsim via SQLMonster.com at 3/21/2006 12:00:00 AM
Hi ,
In BOL when creating a trigger , it says IF UPDATE(column1) has been
updated then it'll return true , how shld i be checking for an insert instead
?
i have tried
IF UPDATE(Column1)
update statement
ELSE
insert statement --> but it seems not able to come to this part
have also ... more >>
How to copy..........
Posted by Bpk. Adi Wira Kusuma at 3/21/2006 12:00:00 AM
I have 2 files with its same name (at folder C:\a\ and C:\b\, both Name
files is SData.mdf). I wanna access the files in enterprise manager at the
time. Can I do it? Because I wanna copy a object (table, store procedure,
etc) from C:\a\Sdata.mdf to C:\b\Sdata.mdf.
How to do it efficiently?
... more >>
|