all groups > sql server (alternate) > october 2005
Filter by week: 1 2 3 4 5
Information Schema Query Question
Posted by Akintoye Olorode at 10/31/2005 2:57:56 PM
Hello All,
Could someone help provide a query that I can run to
determine the primary key and unique columns for any
given table ?
Thanks in Advance,
Akintoye
... more >>
Unique Constraint on Multiple columns
Posted by Dave at 10/31/2005 2:42:28 PM
Can you create a unique constraint on multiple columns, or does it have
to be implemented as a unique index?
If possible can someone please post some sample code?
Thanks,
... more >>
Stored Procs and db_owner
Posted by db55 at 10/31/2005 2:15:08 PM
I have some users that I need to run stored procedures, but they can't
seem to run them unless they are in the db_owner role of the database.
How do I give them access to run the stored procs without giving them
the complete rights of the db_owner role?
Thanks in advance.
... more >>
Passing authentication from PHP to reporting services
Posted by andrewdmason NO[at]SPAM gmail.com at 10/31/2005 10:01:57 AM
Hello,
My boss wants me to create a front end webpage for our Reporting
Services reports that customers can log onto through a webform. I'm a
PHP programmer, so I'd rather do this site and the authentication in
PHP than learn .NET. The main problem I see is finding a way to pass
the authent... more >>
Possible to keep MS Access interface and migrate the MS Access to MS SQL Server?
Posted by Bon at 10/31/2005 3:34:19 AM
Hello all
Would it be possible to migrate the MS Access 2000 to MS SQL Server
2000?
My application is using MS Access 2000 as database and as user
interface such as forms. Now, I want to migrate the backend database
from MS Access 2000 to MS SQL Server 2000. However, I want to keep the
MS ... more >>
Rendering directory structures
Posted by Ben at 10/30/2005 9:23:45 PM
Hi, I have a table of folders that I would like to be able to display
in a depth first manner, similar to what you would see in Windows
Explorer. the table is defined similar to
CREATE TABLE Folders (
folderID int,
parentFolderID int,
name varchar(32)
)
.... ... more >>
Problem with HOST_NAME Function with Linked View
Posted by Neil at 10/30/2005 8:55:45 PM
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table
with 50,000 records; and I have a selections table with 50,000 records for
each machine that uses the database (about 25-50). This allows each user to
have their own set of selections.
The selections table has three f... more >>
Use DEFAULT CONSTRAINTs or BOUND DEFAULTs?
Posted by serge at 10/30/2005 4:22:49 PM
I am doing a little research on Google about this topic and I ran into
this thread:
http://groups.google.com/group/microsoft.public.sqlserver.programming/browse_thread/thread/63cce060ff152dcc/1dc13d4ee6758966?lnk=st&q=difference+constraint+sql+defaults&rnum=14#1dc13d4ee6758966
I read SQL Serv... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
question about log file size when alter Huge table
Posted by Gordowey at 10/30/2005 4:14:30 PM
I have the next question, and i would like to hear what do you think
about, and if is there a better solution for "my problem"
here is the question, I have a huge table with 60GB of data (image
files). The problem happen always when i try to ALTER the structure of
the table. For example I chan... more >>
have sql file and want to run it on an ftp connection
Posted by strawberry at 10/29/2005 12:02:18 PM
i have a db set up that i access using an ftp connection, and an sql script
file that i wish to run, how do i go about doing so?
tia
... more >>
unique constraint to a column from another table
Posted by uw_badgers NO[at]SPAM email.com at 10/28/2005 5:18:44 PM
Is it possible to create a unique constraint to a column from another
table? For example:
tb_current:
current_names
--------------
aaa
bbb
tb_new:
new_name
--------
ccc
Now I want to create a constraint on tb_new.new_name to be unique with
respect to tb_current.current_names. Howev... more >>
Multiserver Administration
Posted by Ren=E9_Dohmen at 10/28/2005 2:41:47 PM
I want to set up Multiserver Administration.
The problem I encounter is a firewall between the master server and some
target servers.
What ports need to be set open to make this possible ?
... more >>
DTS Table Import Issue
Posted by Scott at 10/28/2005 1:22:44 PM
I am using DTS to import tables into my new database from another
database, both of which reside on the same server. All the tables,
fields and data copy over fine; however when I go into design view of
the copied tables, the default values for all the fields are lost. It
seems to copy the struc... more >>
error message 18542 level 16 state 1
Posted by nicki at 10/28/2005 12:38:16 PM
hi we have a link server....and
the user credentials are not being trasfered to link server.....any
thoughts??
we get the following error message
Server message 18542 level 16 state 1
--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checke... more >>
Count(*) Locking up things ...
Posted by csomberg NO[at]SPAM dwr.com at 10/28/2005 9:13:07 AM
SQL 2000
I have inherited an application where many of the automated processes
call a proc that simply returns the number of records with a NEW
status.
In watching the process in SQL, I see this ends up blocking a lot of
processes - many like this are called every 5-30 seconds ...
I wish... more >>
Distinct Filter in SQL Reporting Services
Posted by hurst.andy NO[at]SPAM gmail.com at 10/28/2005 6:43:57 AM
Hello All,
I've got a stored proc that I can't change that creates a quite large
dataset and takes in 5 parameters. I need to be able to have each of
the parameters selectable from a drop down box so that as you go
through the list of parameters you restrict the results. I have it
able to l... more >>
MSDE and two instances on the same server?
Posted by Harkin at 10/27/2005 3:15:39 PM
So I installed an instance of SQL for an application (WSUS) and all was
well. Having read in many places that I could install multiple instances of
MSDE on the same box, I started the second install today (Live Communication
Server). The MSDE install portion of LCS gets almost completed and th... more >>
Attaching MDF without LDF
Posted by Taqyon NO[at]SPAM gmail.com at 10/27/2005 11:57:55 AM
Hi Guys
I'm recovering from a hard disk crash, trying to reattach recovered
files.
The MDF file seems fine, but I get:
"Server: Msg 9004, Level 23, State 1, Line 1
An error occurred while processing the log for database
'NetCoverAdmin'."
when I try to include the LDF file. My command ... more >>
Statement for returning stored procedure params
Posted by Capsule at 10/27/2005 11:54:25 AM
Hi all,
I'd like to put together a SQL statement that will take the name of a
stored procedure as a param, and return that SP's parameters.
I'm writing a test application, and I'd like to wrte a generator to
save myself some time, but I can't seem to figure out how to get the
params from a ... more >>
Find the Data Bases which can not be Backed up are some resons
Posted by duraisridhar NO[at]SPAM gmail.com at 10/27/2005 3:29:06 AM
hi all.,
How can I find the Data Base which can't backed up for reasons
like Data Base is in the middle of the Restore before
i start Backup Process .
Regards.,
Sri
... more >>
SQL Server 2000 and 8k limit
Posted by Mike R at 10/27/2005 12:00:00 AM
How can I check (from TSQL) if a table is likely to bust the 8k limit?
Thanks
Mike
... more >>
String manipulation challenge in SQL
Posted by wheresjim at 10/26/2005 4:19:02 PM
I have a sql query in which I need to isolate part of the columm value
and return only that isolated portion. I can only do this within the
select statement, and cannot add a function or anything like that. I
would also like to keep this query within sql (I don't want to do this
in my programmi... more >>
How to take data out of table, restructure the table and then put the data back in
Posted by Laphan at 10/26/2005 1:23:06 PM
Hi All
Wonder if you could help, I have a bog standard table called STOCKPRICES
that has served me well for a while, but now I need to change the structure
of it and because a number of users have used it in it's present form I need
to so the following in SQL script:
a) Grab a snapshot of t... more >>
Table Synchronization across databases on the same server
Posted by chandrub78 NO[at]SPAM gmail.com at 10/26/2005 12:25:43 PM
Hello Everyone
We have a third party tool which maintains its own custom
database,DB1 on SQL Server 2000 on Server A (Windows 2000). We built an
inhouse application which maintains a transactional database, DB2 also
on Server A derived from DB1. Since the DB1 is frequently updated the
synch... more >>
DTSRun causes The Memory could not be "read" application error
Posted by lyn.duong NO[at]SPAM gmail.com at 10/25/2005 5:35:36 PM
Hi,
I've got this dts package in sql server 2000 sp4 that has several
transformation tasks with an oracle database (10g) as the destination.
The package executes successfully when run through the dts designer but
when run using dtsrun, I get the following error at the completion of
all tasks ... more >>
Server Listing for TCP connection
Posted by N. Graves at 10/25/2005 10:55:42 AM
I'm having trouble with an ODBC User that can't connect to 2003
Windows Server with SQL2000.
The ODBC fails when he tries to contact with TCP client connection.
When I view the Network Connection it is displaying TCP is checked,
but when I view the error log is doesn't display that it is liste... more >>
too many connections
Posted by pardhi a via SQLMonster.com at 10/25/2005 6:20:22 AM
Hi
I am a dba for sql server recently we are facing problems with the no of
connections.
we have a database called ( x ) every day almost million users is using that
databse after some time the cpu showing 100 percent utilization an error
throwing like odbc error connection so in that cas... more >>
Identical database w/ identical stored procedures?
Posted by HeadScratcher at 10/25/2005 4:41:56 AM
We have written an application which splits up our customers data into
their individual databases. The structure of the databases is the
same. Is it better to create the same stored procedures in each
database or have them in one central location and use the sp_executesql
and execute the gener... more >>
Record , Row number
Posted by Elham Ghoddousi at 10/25/2005 3:42:24 AM
Hi
How can i have Row number in my SELECT Statement ?
Thanks
... more >>
Record , Row number
Posted by Elham Ghoddousi at 10/25/2005 3:41:49 AM
Hi
How can i have Row number in my SELECT Statement ?
Thanks
... more >>
Deriving unique rows from historical data
Posted by teddysnips NO[at]SPAM hotmail.com at 10/25/2005 2:30:17 AM
My application is to capture employee locations.
Whenever an employee arrives at a location (whether it is arriving for
work, or at one of the company's other sites) they scan the barcode on
their employee badge. This writes a record to the tblTSCollected table
(DDL and dummy data below).
... more >>
User Defined Functions, passing parameters from another udf's results (end result=Crosstab)
Posted by Ken Post at 10/24/2005 6:15:24 PM
Hi All:
I've read a whole slew of posts about creating temp tables using stored
proceedures to get the crosstab ability, but I'm wondering if, for this
specific case, there might be a more efficient way.
What makes this question different from the others that I've read is
that I'm using user ... more >>
Tool for clients
Posted by imani_technology_spam NO[at]SPAM yahoo.com at 10/24/2005 11:03:51 AM
Can anyone recommend a tool where I can email to someone both the SQL
query and the result set? Right now, I'm just copying the results to a
spreadsheet. No, I can't use Reporting Services or Crystal Reports.
... more >>
Stripping Punctuation
Posted by imani_technology_spam NO[at]SPAM yahoo.com at 10/24/2005 10:50:05 AM
Has anyone had to deal with removing punctuation (commas, apostrophes,
etc.) from a column? What is the most efficient way to have these
characters automatically removed from the column?
... more >>
Create Procedure Output ntext
Posted by rey NO[at]SPAM infoman.de at 10/24/2005 8:17:01 AM
Hello,
I need to produce with T-SQL a user defined function or stored
procedure that make one SLQ-Statement and prepare as string from the
result set.
The request muss be able to return a very long unicode string. The
return value nvarchar is being truncated so I'm trying to create a
stored ... more >>
DAO > SQL Server Processes
Posted by Chris at 10/24/2005 1:24:03 AM
I need to know exactly what VBA lines Create and Destroy SQL Server
Processes - i.e. those visible in Enterprise Manager under Management
> Current Activity > Process Info.
Why?
I am experiencing strange behaviour with Processes that are created
when I create a DAO Database Object with the ... more >>
How to select data
Posted by BabuLives at 10/24/2005 12:03:44 AM
my table ha follow structure..
SalaryTable:
Value Salary
------------
Jan 1000
Feb 2000
Mar 3000
Apr 4000
i want the o/p as..
Jan Feb Mar Apr
1000 2000 3000 4000
Pls give me a query for this
Regards,
Satheesh
... more >>
Quarterly trending
Posted by tran.loan NO[at]SPAM gmail.com at 10/23/2005 5:42:54 PM
I have a reporting query that I need to do a quarterly trending on. A
user enters a begining date and end date, and from there, I have to
determine the closest quarter to it.
Also, the actual Quarter starts on Sept 4th, then add 13 weeks to that,
will be the second quarter.
I was able to d... more >>
excluding fields in SELECT statement
Posted by ric at 10/23/2005 9:55:27 AM
Hi,
Is there a way to exclude fields in a query other than just including
the ones you want. If there are 20 fields and you want to see all but
3, it would be a lot easier to exclude the 3.
Thanks
... more >>
SQL Server 2000 Error 17805 Invalid buffer received from client
Posted by Amit Khatu at 10/23/2005 12:00:00 AM
Hi,
I've developed an ASP.NET application which uses MS-SQL Server 2000 as a
backend. But as the site hits increase SQL server reponse becomes lower.
At some stage after that SQL Server gets automativally stopped bringing
complete web-application down to halt. i checked the Windows 2000 Even... more >>
mssql ide (front ide)
Posted by yehaimanish NO[at]SPAM gmail.com at 10/22/2005 11:15:01 PM
Is there any front IDE for MS SQL as there is MySQL Front for MySQL. I
am looking for it so that it is easy to quickly add/edit/delete the
data from the existing table. Please prode the Download URL is there is
any.
Regards.
... more >>
Many data entry tables - which ones hold records?
Posted by heromull at 10/22/2005 5:57:36 PM
We have an asp.net app with about 200 data entry forms. Customers may
enter data into any number of forms. Each form's data is persisted in
a corresponding sql table. When data entry is complete, it needs to be
processed. Here's where the questions start.
How can we easily determine in whi... more >>
CAST Command
Posted by Mike at 10/22/2005 12:00:00 AM
I am using MS-Access as a front end for my MS-SQL DB. I have a sql view that
uses the following:
SELECT TOP 100 PERCENT RECID, PATNUMBER AS [PAT #], SVCCODE AS [Service
Code], QTY, PROF_CHRGS AS [Pro Fee's'], AMOUNT,
BILLDATE AS [Bill Date], CHKAMT AS [Check Amt], P... more >>
EnterpriseManager-->Process Info Screen
Posted by csomberg NO[at]SPAM dwr.com at 10/21/2005 10:55:40 AM
SQL 2000 SP3
================================================
In reviewing this screen, I have SPIDS > 100 that have a status of
sleeping, command = AWAITING COMMAND and login/batch dates that are
weeks old ... Shouldn't this list be more recent activity only ?
Thanks,
Craig
... more >>
How to create table names by using macro variable? Thanks!
Posted by rong.guo NO[at]SPAM gmail.com at 10/21/2005 10:24:10 AM
Greetings!
I am now doing one type of analysis every month, and wanted to creat
table names in a more efficient way.
Here is what happens now, everytime I do the analysis, I will create a
table called something like customer_20050930, and then update the
table by using several update steps.... more >>
Sql Server 2005: Get a list of all configured Web Services in the "Object Explorer"
Posted by Hans Bampel at 10/21/2005 5:16:58 AM
Hello,
i have created some (test) Web Services in a Sql Server 2005 via the
Create Endpoint Statement. Now i look for a node in the "Managment
Studio" where i can see these Web Services. But i dont found that. What
is the plainest way to do that? What alternatives are existent?
Thank you,
... more >>
historical data
Posted by rottytooth at 10/20/2005 2:09:35 PM
A general data design question:
We have data which changes every week. We had considered seperating
historical records and current records into two different tables with
the same columns, but thought it might be simpler to have them all
together in one table and just add a WeekID int column to... more >>
How do I concatenate text to a sql statement
Posted by COHENMARVIN at 10/20/2005 12:19:12 PM
The following sql statement fails:
SELECT IdFlight, OrganizerLastName + ", " + OrganizerFirstName + "
Flt:" + FlightNumber As Concat FROM TableFlights Order By
OrganizerLastName, OrganizerFirstName
I'm trying to concatenate fields and words, but my asp.net page gives
me an error saying " Flt:"... more >>
DTS vs triggers
Posted by bijesz NO[at]SPAM fw-dot-hu.no-spam.invalid at 10/20/2005 2:10:28 AM
Hi
I've got the following problem
I'm using DTS to transfer fata from csv files into a table
In the file there are often duplicated rows, therefore I made
trigge
on the table
The trigger works fine when i tried in query analyzer, but it no
launche
from the dts.
I've learned that i have... more >>
Table Documentor
Posted by Mike at 10/20/2005 12:00:00 AM
I am sort of new to SQL. I use MS-Access most of the time so I do not know
if you can do this, but...
In MS-Access there was a tool called documenter that would list out the
table def's such as fields, sizes, data types, etc. Is there such a thing in
SQL?
I am using MS-SQL 2000 server.
... more >>
|