all groups > sql server (alternate) > january 2007 > threads for january 22 - 28, 2007
Filter by week: 1 2 3 4 5
Making Inegration Services visible/available in SSMS 2005
Posted by John Morgan at 1/28/2007 12:37:47 PM
I have installed SQL Server Management Studio 2005 and have been
finding the equivalent of the Data Transfer Services in SQLServer
2000. I think I have worked out that it is in SQL Server Integration
Services but when I open File-New-Project I do not see the SQL Server
Integration Services the... more >>
a q about counting
Posted by DE at 1/27/2007 10:50:20 PM
Hi,
New to SQL. Got some questions about it.
Suppose I have two tables. Each of them has a single column, named as
c1. For table T1, I have:
1
1
1
3
3
5
7
9
For table T2, I have:
1
2
3
4
5
1
3
The exercise I want to do is to select the number of occurence in T1
for those e... more >>
Transferring databases from MSDE 2000 to SQL 2000
Posted by Bob at 1/27/2007 5:50:07 PM
Trying to transfer databases from MSDE to SQL. When I use SQL
Enterprise Manager - DTS - import or export, it works for the first
database, but then fails for the others. I select the to and from
databases using DTS - Import - 'MS OLE DB Provider for SQL Server',
then select 'Copy objects ... more >>
backup/restore of Tables ONLY (please)
Posted by javelin at 1/27/2007 4:38:14 PM
I'm having difficulty searching for an answer to this challenge. Can
someone give me a clue on the right keywords to use to find a
discussion on this subject? All of the ones I saw appear to touch on
older versions. I'm working with SQL Server 2000, and need to backup
and restore only tables... more >>
Setting recover model with TSQL
Posted by rsyring NO[at]SPAM gmail.com at 1/27/2007 11:33:16 AM
I have a TSQL script that restores a production database to my local
development machine. Every time I do a restore, I have to go into
Enterprise Manager and set the recover model to simple to prevent
Windows XP Backup from having shadow copy problems (that is a rant in
and of itself). I w... more >>
Specified SQL server not found. [SQLSTATE 42000]
Posted by ServiciosDeCiclismoDelPeru NO[at]SPAM gmail.com at 1/27/2007 6:24:38 AM
Hi,
I have a Scheduled Job on my PC that runs against a Linked Server. I
have scheduled the Job to run when SQL Server Agent starts and I have
configured my SQL Server and SQL Server Agent to start when the OS
starts. The connection to the Linked Server is via my Broadband
internet connec... more >>
sql 2005 - optimization - cannot use index
Posted by Massimo at 1/26/2007 8:03:11 PM
I have a very very strange situation with a particular application and sql
server 2005 enterprise.
This application combines numerical data from multiple tables. User can make
query over this kind of tables, can build queries with "group by" "order by"
and "join", "sum, count(*) ecc. on many m... more >>
Input Paramter as part of OPENDATASOURCE
Posted by paddy_nyr at 1/26/2007 11:20:57 AM
I want to use an input parameter as my filename, but I get a synatax
error message. Howerve, when I hard code the filename the proc compiles
successfully.
Thanks for any help. I'm using SQL Server 2005
LTR_90,
LTI_ELIG_pct,
LTI_REC_pct,
LOW_SALARY,
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Varchar Truncation
Posted by Chris Moore at 1/26/2007 7:16:06 AM
Hello,
I am attempting to write a stored procedure that builds and executes a
dynamic SQL statement which can be up to 8000 characters long.
Therefore, I have declared a variable of type varchar(8000) which,
according to the documentation, is the maximum acceptable length of
such a variable. ... more >>
The age old argument of Temp table vs Table variable
Posted by Burbletrack at 1/26/2007 5:43:42 AM
Hi All,
Hope someone can help me...
Im trying to highlight the advantages of using table variables as
apposed to temp tables within single scope.
My manager seems to believe that table variables are not advantageous
because they reside in memory.
He also seems to believe that temp tables d... more >>
downgrade SQL2005 to SQL2k - Unicode ANSI issue
Posted by candide_sh NO[at]SPAM yahoo.de at 1/26/2007 5:13:55 AM
Hello,
I created a script with database publishing wizard to convert a SS2005
db into a SS2k db. The script has schema and data and looks very good.
When I try to start the created script in SS2k-Query analyzer, I get an
error like (in german)
Server: Nachr.-Nr. 105, Schweregrad 15, Status ... more >>
Words suggest or spellcheck in MS SQL 2005 Express
Posted by Pacific Fox at 1/25/2007 3:38:10 PM
I am trying to recreate the same functionality Google has in regards to
suggesting words (not names), when you misspell something it comes up
with suggestions.
We have a list of words in the database to match against.
I've looked at SOUNDEX but it is not close enough, DIFFERENCE is even
wor... more >>
sql server error
Posted by Josue.Barrios NO[at]SPAM gmail.com at 1/25/2007 1:34:23 PM
Hi, i'm trying to make a stored procedure and appear this error on the
code, i hope somebody can help me
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE factura_detalle_data
AS
BEGIN
SET NOCOUNT ON;
DECLARE @tipo_documento VARCHAR
DECLARE @documento NUMERIC
DECLAR... more >>
script to copy logins and users with all permissions
Posted by Inna at 1/25/2007 11:24:06 AM
Hello all,
I am looking for the script, which I believe exists already.I need to
be able to populate the script for security of one database and
apply it to another database, even if it is located on another server:
1. All logins which not exist have to be created and which exists
ignored inclu... more >>
automatic number increment in ms sql 2005
Posted by HandersonVA at 1/24/2007 2:42:34 PM
will it be possible to increase number as below automatically
00000001
00000002
00000003
....
whenever the row is inserted, number will be increased like above
format.
which data type should I select and do some other setting to record
like that?
thanks
... more >>
Paging records on SQL server using derived tables
Posted by rbg at 1/24/2007 12:23:50 PM
I am using derived tables to Page data on the SQL Server side.
I used this link as my mentor for doing paging on the SQL
Serverhttp://msdn2.microsoft.com/en-us/library/ms979197.aspx
I wanted to use USER PAGING, thus I used the following code:
CREATE PROCEDURE UserPaging
(
@currentPage int ... more >>
Things I didn't know until today
Posted by amaxen at 1/24/2007 12:13:34 PM
You can use a Select top @variable in sql server 2005:
Thus:
--'Throttle' the result set:
Select Top (@MaxBatchSize)
KeyID
, LId
, ArrivalDt
, CaptureDt
, Lat
, Long
From GPSData
Order By CaptureDt Desc
Makes messing with Set Rowcount *so* redundant :-)
... more >>
Difference between Enterprise Manager and Query Analyzer
Posted by chudson007 NO[at]SPAM hotmail.com at 1/24/2007 5:37:41 AM
Hi All,
What are the pros and cons between using Enterprise Manager or Query
Analyzer for my queries.
Currently I use Enterprise Manager because I prefer the interface and
only use Query Analayzer when queries time out in Enterprise Manager,
but I'm sure there must be more to it.
Regards... more >>
DROP Database sql server 2000
Posted by shark at 1/23/2007 11:46:24 PM
Hi,
i have two servers. database A on server A . database A on server B
(both sql server 2000 - both same d/b - server B being the standy
by).if i delete databse A on server Ai have to deleted the standyby
copy on server B.
can anybody please guide me as to how to do this.
Thanks,
Shark... more >>
DTS question reguarding text import and tranformation
Posted by lwhite at 1/23/2007 4:55:52 PM
MS SQL 2000 sp4 on WinXp Pro SP2
I am very new to this so please let me know what I can do to make it
easier for you to understand the problem.
I have a non delimited text file. This text file has several columns
that for the most part are fixed length but..
The fixed format starts with... more >>
SELECT statement - How to not get column field names?
Posted by Billy at 1/23/2007 4:43:05 PM
I do a SELECT * from table command in an ASP page to build a text file
out on our server, but the export is not to allow a field name rows of
records. The first thing I get is a row with all the field names. Why
do these come in if they are not part of the table records? How do I
eliminate this ... more >>
Turning Rows into Columns
Posted by markjerz NO[at]SPAM googlemail.com at 1/23/2007 8:21:21 AM
Say I have a table of data containing something like
Region | County | Year | Month | Value
for some sort of value (int). I want to re-arrange this data so that it
comes out like this:
Region | County | Year | J | F | M | A | M | J | J | A | S | O | N | D
where the letters are obviously... more >>
list all tables in master
Posted by plmanikandan NO[at]SPAM gmail.com at 1/23/2007 7:03:03 AM
Hi,
I need to list all the tables in northwind database.
I'm using sql server 2000.
In query analyser i'm in master database.
I don't want to change the database to northwind.
How to list all the tables in northwind database when the database
combobox has master in query analyser.
I want to r... more >>
How to get last records in grouped query.
Posted by schapopa at 1/23/2007 6:57:11 AM
Hi,
I want to create query where I could group records by quarters, and get
the last record in each group.
e.g
Create Table MyTable
(
Value [float],
date[datetime]
)
Insert into MyTable (value, [date]) values (100, '1-1-2000')
Insert into MyTable (value, [date]) values (110, '1-2-2000')
... more >>
Issue with DB on particular machine
Posted by Paul at 1/23/2007 2:05:14 AM
Hi,
I am at a bit of a loss about what to do with a problem I am having. I
have a 7GB database, loaded on to SQL Server 2000 SP4 on 2 different
machines.
Machines have following specs:
1) Intel Pentium 4 Dual Core 3.40 GHz, 3 GB RAM, 2GBb RAM available to
SQL Server. Windows 2003 SP1
2)... more >>
Problem with view
Posted by Chris at 1/22/2007 3:34:22 PM
I am trying to create a view that creates a mailing list from two
different tables. The t-sql code executes successfully but when I try
to open the view I get this error message [Microsoft][ODBC SQL Server
Driver][SQL Server]Error converting data type vchar to float.
Here is the t-sql code I ... more >>
updating two tables
Posted by thomanjl at 1/22/2007 9:40:57 AM
Okay, here is my issue:
I have an access program that tracks the location of certain items.
When the items are moved their record will be added with transfer
information.
So, there are two tables: tblContents and tblTransfer
tblContents holds all the relevant information about each item as... more >>
UDF and persisted column
Posted by SQLMan_25 at 1/22/2007 6:37:11 AM
Hi All,
I am trying to create a user defined function that fetches the price of
an item. I have written a scalar function that takes itemid and returns
its price.
Simple version of tables would be like this:
Item(
itemid int,--pk
price decimal(18,4)
)
item_detail(
redid int , --pk
i... more >>
|