all groups > sql server (microsoft) > november 2006
Filter by week: 1 2 3 4 5
Transaction log question: Backing up and truncating question
Posted by Sektor at 11/30/2006 4:56:35 PM
I almost put this in my original post, but I thought since this is a
pretty in-depth topic, I would start it anew, with a topic more suited.
Basically, after a couple hours of reading, I am starting to grasp
things a bit better,but I am still confused.
Let me explain.
Right now, we backup... more >>
Bulk insert memory consumption
Posted by Menon at 11/30/2006 3:32:34 PM
Hi guys
I am bulk inserting a file around 25 MB in size. Looks like SQL Server
loads the whole data in memory and then does an insert. Is there a way
to do this "transactionally" in chunks of smaller size so less memory
is used but still the whole insert either fails or succeeds?
Thank you!
... more >>
Basic Database help
Posted by Sektor at 11/30/2006 2:35:48 PM
I have recently been asked to take over the duties of our database. I
am a systems, network and security guy, so I am really getting into new
territory and have a lot to learn (at least for now.)
We are using SQL Server 2000 SP4 on Windows 2003 Enterprise.
I've been reading through some boo... more >>
SQL Server Application Error Handling
Posted by inetvoid NO[at]SPAM gmail.com at 11/30/2006 2:05:33 PM
Looking for input/advise on a situation my business is having with an
application that is posting mission critical financial data from
hundreds of remote sites into a SQL Server database.
The server side application that posts the received data from the
clients into SQL Server does not have an... more >>
Still need help with stored Procedure output parameter
Posted by jbonifacejr at 11/30/2006 1:06:20 PM
Hi. I'm sorry to bother all of you, but I have spent two days looking
at code samples all over the internet, and I can not get a single one
of them to work for me. I am simply trying to get a stored procedure
output parameter to be stored in a variable in my ASP code.
The error I am getting is... more >>
problem with before insert/update trigger
Posted by lucky at 11/30/2006 7:15:48 AM
hey guys!
i'm not able to understand the problem. the situation is like this,
i've a table that has before insert/update trigger which checks for
some data in some tables and if the data is not found it suppose to
throw an error.
to get the data, that is inserted into the table, i'm using thi... more >>
Check Constraint for two columns
Posted by mkerrigan NO[at]SPAM ktoys.com at 11/29/2006 8:40:12 AM
How can I write a check constraint for the following situation:
If Field1 has a value in it, Field2 must be NULL, and vice versa. Both
columns cannot be NULL, and both columns cannot both be non-NULL.
Thanks.
... more >>
SQL Server Express Utility - Some questions (shrink, detach).
Posted by mark4asp at 11/29/2006 4:46:08 AM
SQL Server Express Utility questions.
1) I shrank my database.
The database files were here:
"C:\DATA\Development\MyWork\MW4\Database\"
MyWork_40_Data.mdf
MyWork_40_Log.mdf
I issued the command:
C:\>sseutil -shrink
C:\DATA\Development\MyWork\MW4\Database\MyWork_40_Data.mdf
A n... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Objects Schema
Posted by bradadams.vmg NO[at]SPAM gmail.com at 11/28/2006 2:57:26 PM
I'm trying to find a way so that a stored procedure or user-defined
function can return the name of the schema to which it belongs. I'm
using object_name(@@PROCID) to get the name, but I don't know the best
way to get the schema name.
I've tried this, but it doesn't return anything when put... more >>
Update cursor on W2K3 Server 10 times slower then on WXP
Posted by joozeq NO[at]SPAM gmail.com at 11/28/2006 3:54:14 AM
Hi
I have a very simple procedure which uses an update cursor to read data
from a table and for each row it updates only one integer field. When I
run this sp on Windows XP Professional running SQL Server 2000 SP4 i
takes it about 2 mins to complete. However, when I do exactly the same
on ide... more >>
Problem with SQL Express 2005
Posted by shane.miller NO[at]SPAM worksafebc.com at 11/27/2006 9:04:03 AM
I am working with an application using SQL Express 2005. Everything
seems to be working ok except, when I restart my system SQL seems to
lose it's connection to the database. Once the system has restarted I
then have to go into the Management Studio and detach the database and
then re-attach i... more >>
Problem with query returning unwanted records
Posted by Koden at 11/27/2006 8:42:19 AM
Hello,
I am having an issue trying to pull selected deata out of some SQL
Tables and into a CSV file. I am trying to filter on 3 different
fields as seen below in the WHERE statement. If I only use one of
these filters at a time it works fine but when I put them together it
only seems to us... more >>
Query Executed in Query Analyzer Performs Significantly Less Reads Then When Executed In A C# Application
Posted by rob at 11/23/2006 3:01:36 PM
Using Profiler to analyze some queries, I found a specific query that
was consistently causing SQL Server to perform well over 1.5 million
reads and taking over 25 seconds to run. However, when I run the exact
same query in Query Analyzer it tells me that it is performing only
4000 reads and ta... more >>
Duplicate Rows Or Distinct
Posted by Michael Jackson at 11/21/2006 6:52:27 PM
I want to do something similar to SELECT DISTINCT, but I want DISTINCT to
act upon only one column of the table, not a concat of the columns.
If row 1 and row 2 both contain "Widget" in the Description column, I want
all columns from row 1.
Thanks.
... more >>
Optimal RAID setup for DB Server question
Posted by Sektor at 11/21/2006 12:59:35 PM
We have a one Database server that is our primary and most important DB
for the company. It is the only active DB that is used (besides temp,
master).
The box:
(4)3.0ghz CPU
4gigs RAM
(2)36gigs SCSI in Mirror RAID for OS
(3)76gig SCSI in RAID 5 for Database
Windows Enterprise 2003
Sql... more >>
select max(foo)+1 returns NULL when table is _not_ empty
Posted by usenet NO[at]SPAM shat.net at 11/21/2006 11:49:45 AM
Hi all
I have a stored procedure that's showing me some weird results. The
relevant portion of the SP is:
create procedure foo
as
set nocount on
declare @version int
set @version = (select max(version)+1 from myTable)
[...snip...]
In myTable, the version field is an int not null defau... more >>
Is 64bit worth it?
Posted by Martin at 11/21/2006 6:41:27 AM
Our servers are using Intel 5160 dual core chips which are 64bit.
However we're running 32bit windows and 32bit SQL.
Will there be much benefit in moving to the 64 bit versions. I know
for a start it will make using memory above 2GB for SQL, but would we
see much more of an improvement in g... more >>
Really Slow - Business Intelligence Dev Studio
Posted by Martin at 11/20/2006 4:14:25 AM
Hi, I'm having issues running the SQL server business dev studio to run
some import packages.
The performance of the application is extrmely slow, to the point where
it's almost unusable.
Every operation from opening the app, to opening a project and then
opening a package takes around a mi... more >>
INSERT SELECT with stored procedure?
Posted by John Bailo at 11/17/2006 1:15:05 PM
A cool feature of SQL is that I can use a SELECT statement and pass
values into an INSERT -- great for moving a few records between tables.
Question: is there a way to use a SELECT to pass values into a stored
procedure?
--
The Texeme Construct
http://you-read-it-here-first.com
... more >>
good list of SQL 2000 / 2005 sites, including Reporting Services
Posted by punjab_tom NO[at]SPAM hotmail.com at 11/15/2006 11:04:42 AM
Hello
my name is Tom.. and I am looking for lots of shortcuts about SQL
Server.. best practices.. We have SQL 2000 and SQL 2005.. and a lot of
Reporting Services..
Thanks
-Tom
... more >>
DB data and log filenames
Posted by duylam76 NO[at]SPAM hotmail.com at 11/14/2006 11:04:50 AM
How can I retrieve the logical filenames of the data and log files of a
DB without a backup file and without using Enterprise Manager? With a
backup file, I know I can get it from "RESTORE FILELISTONLY" but I
don't want to have to perform a pointless backup just to retrieve the
filenames. I also... more >>
Autostart SQLServerAgent service
Posted by DrDre at 11/13/2006 11:00:51 PM
Hi,
During our server installation SQL Server 2000 SP4 SQLServerAgent is
not started (it was also not needed). But since a few weeks we are
using SQL jobs to make a SQL Backup very day
My first actions were:
SC CONFIG sqlserveragent start=3D auto
and
NET START sqlserveragent
I though... more >>
ODBC/OLEDB support for HTTP-based comms to SQL server?
Posted by wizofaus NO[at]SPAM hotmail.com at 11/13/2006 9:28:09 PM
Does there exist an ODBC or OLEDB/ADODB driver for talking to SQL
server over HTTP/port 80?
In other words, I want to be able to issue SQL commands (INSERTs,
UPDATEs, SELECTs) from a client application to a database that happens
to be sitting on a server somewhere that I can only reach via HTTP
... more >>
Managing Databases on Multiple Servers
Posted by rgagne99 NO[at]SPAM gmail.com at 11/13/2006 9:03:43 AM
I need to deploy a database fix (sql DDL Script) to many databases on
many servers. All databases are identical in structure. I just need
to play the hotfix script on all of the DBs.
I don't want to open a seperate window for each DB in Stidio. What
mechanisms are available to do this autom... more >>
Date part only in Table
Posted by robin9876 NO[at]SPAM hotmail.com at 11/13/2006 7:50:53 AM
In a SQL 2005 database is it possible to store the date part only in a
table? As their only appears to be datetime data type, which is
displaying the default time part as well.
... more >>
Delete records from database older than "x" number of days
Posted by Rnt6872 at 11/9/2006 12:37:02 PM
Hello All,
I'm trying to delete records from a table that are more than 90 days
old. I've tried this:
declare @date datetime
set @date = getdate()-90
select *
from table X
where cast(coulmn T as sql_variant) > @date and isdate(coulmn T)=1
But, when the query is executed it returns all ... more >>
Best field type to use
Posted by BobRoyAce at 11/8/2006 7:26:26 PM
I have a string variable that will contain driving directions involving
many stops. These driving directions contain some special characters,
like tabs and carriage return/linefeeds. In addition, the length of the
string can be very long (i.e. more than 8000 characters, the limit for
varchar). W... more >>
How do I remove punctuation from data in a table?
Posted by Koden at 11/8/2006 9:08:47 AM
Hello,
I am using SQL Server 2000 that came with SBS2003. We need to do some
"data scrubbing" of our current accounting data in preperation for a
conversion to a new ERP system.
I need to pull a table into SQL from Pervasive using ODBC (which is
easy enough). Then I need to take the data ... more >>
try catch ok, what about finally?
Posted by JCollum at 11/7/2006 2:18:08 PM
I guess there is no "FINALLY" in SQL, but I'm wondering how you would
go about doing the same thing. I have a bunch of sql in a try block,
and I'm raising errors when the user is requesting something that the
code cannot do. In the dev phase of the project, I'd like those
processes to result in ... more >>
Filtering query using variable doesn't work - using same value hard-coded does
Posted by Danielle at 11/7/2006 12:30:36 PM
All -
I have a nvarchar data type variable @email which equals 'xyz.com' (the
single quotes are part of the variable...)
When I run a query (DDL not included as I don't think it's necessary
for this question) using this syntax I get no results:
select * from contact where email like @emai... more >>
Order By Clause Issue
Posted by aljamala NO[at]SPAM gmail.com at 11/7/2006 7:30:32 AM
Can anyone tell me what is wrong with the order by clause? Thanks....
CREATE PROCEDURE dbo.p_sel_Meters_report
@usertype varchar(1),
@client_id varchar(20) = NULL,
@strSort varchar(40) = NULL
AS
SELECT meter_contract.contract_id,
meter_contract.latest_allowed_meter_input_dt,
meter_a... more >>
PP: Out of row option for table
Posted by prabhupr NO[at]SPAM hotmail.com at 11/7/2006 5:12:51 AM
Hi All
I was reading this article
http://www.databasejournal.com/features/mssql/article.php/3632906 in
which they have metioned about changing table option using "large
value types out of row", to move the column with huge data (Text
Datatype in particular) to a seperate page.
Is this opti... more >>
SQL Server Trade Shows & Conferences
Posted by gerald.stowers NO[at]SPAM gmail.com at 11/6/2006 1:40:05 PM
Hello,
What are the better SQL Server Trade Shows & Conferences? I am looking
SQLPASS this month, but my schedule has conflicts. Is that the best
show? Are there other good ones?
Thanks
Gerald
... more >>
HTML tag encoding
Posted by joelranck NO[at]SPAM gmail.com at 11/2/2006 4:20:58 PM
I recently migrated from MySQL to SQL Server and ported all my data
over without a hitch. The only problem I'm running into is html tags
are being encoded into character data and lost on import. I'm
wondering if there is a fix or anyway around this? e.g. <br> turns into
two boxes
... more >>
Proper way to delete a database in SQL 2000?
Posted by jasonwilliams74 NO[at]SPAM gmail.com at 11/2/2006 10:17:16 AM
I really new to SQL as I am diving head first into it. It is new
territory for me, so I am unsure about things.
It is a simple question really.
What is the proper way to delete a database in SQL 2000? We have a old
database on the server that we no longer need or use. It has been asked
of m... more >>
SET XACT_ABORT ON|OFF Best Practices SQL2000|SQL2005
Posted by MIcrosft_Public_SQLSERVER at 11/1/2006 4:41:59 PM
After reading BOL, all blogs and white papers I am still confused.
I need to know -
1 Justification for XACT_ABORT OFF as default
2 Justification for having this option at all
3 If I have a simple transactions as below ( I have used line numbers
for explanation in the pseudo code)
With th... more >>
Cannot connect to SQL Express on 2003 Machine from XP machine
Posted by Harry at 11/1/2006 2:11:44 PM
Hi,
Can someone help me with a connection problem!
I am trying to connect from an XP SP2 machine remotely to a SQL Express
database on a 2003 server.
Everytime I try to connect via Visual Web Developer, i get the
following error:
"An error has occurred while establishing connec... more >>
|