all groups > sql server (microsoft) > october 2006
Filter by week: 1 2 3 4 5
How To Find Table Owner - using SQL select statement
Posted by Bill at 10/31/2006 7:35:58 PM
Hi All,
I'm currently using
SELECT *
FROM sysobjects
WHERE xtype = 'U'
ORDER BY name ASC
to extract all table names from a database.
How do I find the table owner (as there are multiple tables with the same
name, but different owners)
TIA
Bill
... more >>
can't backup sql 2005 express from netbackup 9.1
Posted by Guy at 10/31/2006 3:24:47 AM
Hi,
Our developers have just installed sql 2005 express on our
sourceserver.
When i try and back it up using netbackup 9.1 I get the following
error.
"an error was encountered while attempting to browse the contents of
<servername> a network connection to the server could not be
establi... more >>
How can I do this type of query?
Posted by chris-s NO[at]SPAM mailcity.com at 10/31/2006 1:09:39 AM
Using SQL Server 2000, I need to construct an sql statement inside a
stored procedure as below...
SELECT TOP 1 @SelectedValue = Value FROM MyTable
.....however, the tablename is not fixed and so I need to build up a sql
string and then call it using the EXEC() function......
DECLARE @Se... more >>
SBS 2003 (SQL 2000) with SQL Express 2005?
Posted by mcwangus NO[at]SPAM gmail.com at 10/28/2006 10:23:29 AM
Hi all,
Just got a server running SBS 2003 R2, fully patched. New from Dell.
I notice that there are 3 SQL instances already installed and running
(WSUS, SBS Monitoring and SharePoint). However, there is no GUI
connectivity installed and I cannot connect with osql also. I know they
are SQL ... more >>
How to find data any place in database?
Posted by samtilden NO[at]SPAM gmail.com at 10/27/2006 2:05:45 PM
How can I find a piece of data any place within the database?
All I know is that the string 'ABCDEFG' appears within some column in
some table in a known database.
Is there an easy way to scan the entire database and identify the table
or column?
The hard way is to write a dynamic SQL sta... more >>
SQL Server running data off of USB / Firewire hard drive
Posted by mrobins NO[at]SPAM gmail.com at 10/27/2006 1:02:22 PM
Does anyone have any experience setting up SQL server with the data
stored on an external (USB / Firewire) hard drive.
This setup would be used by 1 or 2 users for data analysis, it would
not be intended as a production server.
If anyone has tried this, I am interested in any idea of what si... more >>
SQL server
Posted by olddb_97 NO[at]SPAM yahoo.com at 10/26/2006 2:12:26 PM
I have a Dell Dimension 2400 with xp home edition on it. I want to get
rid of this SQL server thing. When it doesnt connect i cant get on the
internet or anything and then everything runs so slow. then It causes
nothing but problems. Will my system still run ok if i erase this? Is
there anyth... more >>
Row insert timestamp..
Posted by pdabak NO[at]SPAM yahoo.com at 10/26/2006 5:41:09 AM
Hello,
Does SQL server implcitly maintain the timestamp of each inserted row?
I have few tables in my MSSQL database and I don't have any timestamp
fields in the table. However, I still want to find out the time at
which rows were inserted in the database.
Does SQL provide any implicit way ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Installing AdventureWorks Database
Posted by Kayda at 10/26/2006 1:12:23 AM
This should be a simple thing but it is proving very difficult.
I didn't install the AdventureWorks database when I installed SQL
Server 2006 Standard Edition. I now want to install it. I have done
everything that Microsoft recommends but still no database.
Here is what I tried:
1. Tried to... more >>
sp_helptext returns the wrong DDL, new SQL developer
Posted by punjab_tom NO[at]SPAM hotmail.com at 10/25/2006 6:40:33 AM
I have been cutting and pasting sprocs in an ADP-- seems like a pretty
natural thing to do.
I am signed in as 'sa'.
I'm confused about why this statement returns the wrong DDL?
-----------------------------------------------------------------------------------------
sp_helptext 'QA41_Ad... more >>
Query 10 times slower (and results reordered!) from ASP.NET page than console app.
Posted by wizofaus NO[at]SPAM hotmail.com at 10/24/2006 4:08:15 PM
I have a chunk of code which is essentially
IDbCommand cmd = db.CreateCommand();
cmd.CommandText = "SELECT X, Y, Count(*) FROM Foo WHERE Z = 1 GROUP BY
X, Y";
using (IDataReader reader = cmd.ExecuteReader())
while (reader.Read())
{
// grab values from query
}
The database is... more >>
Q: Detecting duplicates
Posted by G .Net at 10/24/2006 12:00:00 AM
Hi
I'm hoping that somebody can help me with the following problem.
To simplify things, consider a table that only has two fields: a primary key
and a field that holds a string.
What SQL can I use to see whether the table contains duplicates i.e. there
are rows which hold identical valu... more >>
News Group dedicated to Reporting Services?
Posted by Benjamin at 10/23/2006 7:24:27 PM
Hi,
Is there a news group dedicated to Reporting Services or one that I can post
my questions.
Thanks
... more >>
UDF for longest word in string
Posted by aaron.kempf NO[at]SPAM gmail.com at 10/23/2006 4:01:04 PM
Team;
I've got a string like
'hello world grandma'
and I want to find or write a UDF that will tell me the longest WORD
out of that string (in other words, grandma).. i'm using SQL 2000 of
course :)
-Aaron
... more >>
removing sql 2005 ctp
Posted by fredd00 at 10/22/2006 10:33:52 PM
Hi
I can't get my sql 2000 to connect again since i installed 2005
now i uninstalled sql 2005 ctp but i still get the error about 2005
not being configure for remote connection when trying to connect to
sql 2000
how can i remove 2005 ctp properly
by the way i tried to reinstall 2005 ... more >>
Help with uniqueness constraint
Posted by Chris at 10/22/2006 12:28:35 PM
Hi! Thanks for even reading this :)
I have a table called PeopleType, which is just ID, Name, and
Description.
I have another table called Event, which is ID, Name, Description, and
Date.
I just made a third table (I call this a "mapping" table... what is it
normally called?) called Even... more >>
double-hop authentication for SSRS and ASP
Posted by susiedba NO[at]SPAM hotmail.com at 10/20/2006 3:25:03 PM
hey
I work in a SSRS environment; I also do some web dev.. and we keep on
having authentication problems getting a token to pass from one user to
the webserver; and then to the database server.
this is called 'double-hop' authentication.. right?
I'm of the understanding that I need to che... more >>
SQL Architecture Opinion
Posted by Eric at 10/19/2006 11:51:39 PM
SQL Architecture Opinion
>
> Hello. I am looking for your opinions on an architecture solution that
> our System Architect came up with for our SQL Servers within our IT
> division. Essentially, his idea is to implement one large SQL Server
> that all databases will run off of, regardles... more >>
ssis package fails when run under sql server agent
Posted by Dica at 10/19/2006 7:57:01 PM
i've got an ssis package that runs fine when i run it from within visual
studio, but fails when run under sql server agent. when i run the package
from visual studio, i'm logged in under the same account as the sql job's
owner (both the admin account). the step it's failing on is when it needs... more >>
Update & Select
Posted by aljamala NO[at]SPAM gmail.com at 10/19/2006 9:35:56 AM
Hello,
I am trying to write a stored procedure where it performs an update and
then returns a couple of fields back to the ASP page. Below is the SP
code...
CREATE PROCEDURE dbo.p_update_asset
@asset_code varchar(20),
@newsort varchar(20) = NULL
AS
set nocount on
DECLARE @rowco... more >>
variable substitution vs. executing dynamic strings
Posted by no.spam NO[at]SPAM junk.mail.net at 10/19/2006 12:00:00 AM
First off_ pure - uneducated - hacker - novice - alert!! If you are offended by
silly questions close this posting immediately!
I'm sure this has come up 1,000K times before and I have googled the issue_
Still have not found a satisfactory explanation.
I have a table 'alarms' with several d... more >>
Design to speed up a query using primary key
Posted by Menon at 10/18/2006 7:58:32 AM
Hi folks
I have a table with a primary key. My central goal is to improve the
speed of the select using the primary key (that is the only query II
care about.) It is ok to sacrifice the performance of the insert into
the table (insert happens once a day when there is no activity on the
table). ... more >>
SQL 2005 encryption: OPEN SYMMETRIC KEY in view?
Posted by kensimone NO[at]SPAM gmail.com at 10/18/2006 7:54:33 AM
Hi,
I'm using SQL 2005 encryption, and would like to create a view that (in
addition to selecting data) opens the symmetric key used for encryption
if it's not already open, and leaves it open. I know I can use
DecryptByKeyAutoAsymKey to automatically open the key, decrypt the
data, and then ... more >>
Q: Precision in SQL server 2000
Posted by G .Net at 10/17/2006 5:15:45 PM
Hi
I'm hoping somebody can help me with the following problem:
I have a table which has several fields holding floats. These floats need
only be stored to 3-4 decimal places, however, as far as I can see, the
floats in sql server 2000 have a precision of 53 - far too much precision.
I'm... more >>
SQL express performens lagg
Posted by Jacob Ipsen at 10/16/2006 9:49:55 PM
Hey I am currently working on at project.
where I have some "problems" regarding to the way the SQL Express is Working
in general.
My setup and goal is the following
Setup
VIA 700Mhz processor 512Mb Ram
OS XPe with SQL express and my shell
my goal is to get the SQL Express to run as ... more >>
how to check for column Existance
Posted by lucky at 10/16/2006 1:37:15 AM
Hi guys,
need your help. i've no knowledge of DB.
i gotta create a script, in that i need to check for a column in the
table, if the column doesnt exists then i need to create a column.
i tried this code in my script for checking the column:
go
if ((SELECT COALESCE(COL_LENGTH('Table_name... more >>
Find foreign key relationships for a table
Posted by mkerrigan NO[at]SPAM ktoys.com at 10/13/2006 8:56:59 AM
How can I find the foreign keys for a table? I would like to be able
to find, for any table, the columns that are foreign keys and what
tables/columns the foreign keys are related to. Basically what I am
trying to do is this. My developers want to allow logical deletes of
data. I don't want ... more >>
Question on database design
Posted by Menon at 10/11/2006 10:24:59 AM
Hello folks
I am new to Sql Server database and I have a high level design question
that I hope you guys can help me with.
In sql server, what are the advantages or disadvantages of separating
different applications into different databases. An alternative could
be to share the same database ... more >>
Masking Question
Posted by ultrakit at 10/10/2006 11:29:27 AM
Hi, I have a smalldatetime field in my table and when I do a query, I
would like to output the date with weekdays, ie: Tuesday, October 10,
2006. How can I do that? Thanks in advance!
... more >>
calculate only visible data in the report
Posted by munnyAnu at 10/10/2006 6:33:27 AM
Hi,
I need to calculate grand total of only visible rows data in my report.
I dont no how to avoid those hidden rows values from the calculation.
Any help?
Many thanks.
Munnu.
... more >>
SQL 2005 sp_attach_db fails with OS Error 5 Access is denied
Posted by todderickson NO[at]SPAM gmail.com at 10/9/2006 12:46:19 PM
I have a problem that seems to be similar to the issue fixed in MSKB
article 922804 (http://support.microsoft.com/kb/922804)
We are an ISV and our application uses a separate reports database fro
each user. When a user logs in, if they do not have a reports DB, we
create it. When they log out ... more >>
Handling encryption at the application level
Posted by SFM at 10/9/2006 7:35:52 AM
The development of an application that handles encryption of data
stored in a database (SQL server) at the application level. This is
what I am trying to develop, but I am just in a researching face for
the moment, hence my question.
Can anybody reply me on the how difficult this should be to ... more >>
Date convert
Posted by Dia at 10/6/2006 3:37:05 AM
Hi there,
How can i convert a 04/01/1920 to DDMMYYYY format eg. 04011920?
... more >>
SQL 2005 Windows Groups Authentication - Cannot open user default database. Login failed
Posted by craig.overton NO[at]SPAM gmail.com at 10/5/2006 10:56:45 AM
All,
To start off I have SQL 2005 SE Clustered in an Active/Active
environment. Everything is working correctly as all websites and
standalone applications are connecting and getting/sending data
correctly using SQL authentication.
My problem is that I have 1000's of developers that would l... more >>
How to create a DB corruption (SQL Server 2005)
Posted by Haim.Oz NO[at]SPAM gmail.com at 10/3/2006 7:26:37 AM
Hi Guys,
I'm trying to deliberately create a DB corruption (QA reasons) on one
of my DBs (never mind which one, even the System ones will be ok), on
SQL 2005 Ent. edition.
Since I'm kinda new in the area, I'd appreciate any help you have to
offer (query, etc...)
Ps,
I need to corrupt th... more >>
Shifting the Transaction Log
Posted by Shane and Lynne Rodoreda at 10/3/2006 12:00:00 AM
I have 2 transaction log physical files on M and N drives (dbname_log1.ldf
and dbname_log2.ldf) and I want to have only one physical log file on the L
drive - how do i remove/rename/delete/create the transaction log on a new
device
thanks
shane
... more >>
SDN List & XML
Posted by Zamdrist at 10/2/2006 9:31:54 AM
http://www.treas.gov/offices/enforcement/ofac/sdn/
I wonder if it my be conceivable/practical to import on a regular
basis, hands-off, the XML version of this list directly from it's
source, the web, to a MS SQL database, in this case version 2K?
Thoughts, ideas?
... more >>
CAST or CONVERT during UPDATE
Posted by dino.tartaglia NO[at]SPAM googlemail.com at 10/2/2006 7:14:19 AM
Hi
I'm brand new to SQL and have finally (with much support) managed to
get values from an Excel workbook updating a live SQL database using
the following:
sSQL = "UPDATE Clients SET [Org Commission]=' " & Range("F38")
& " ',[PPP Amount]=' " & Range("F36") & "',[Org Amount]=' " &
Ran... more >>
|