all groups > sql server (alternate) > december 2004
Filter by week: 1 2 3 4 5
executing DTS - DSN error...
Posted by emily at 12/31/2004 6:18:15 PM
Perhaps this has already been answered. If so, I apologize. I'm a
newbie at this stuff. I have a DTS package to import some Visual
Foxpro data. Yes, I said Visual Foxpro. :) The DTS package works
beautifully when I rightclick on the package and choose "execute." And
it works beautifully w... more >>
sql server & crystal reports
Posted by someguy at 12/31/2004 2:26:44 PM
Hi,
I'm semi-new to crystal reports & sql server and what i want is to
extract data from a sql server file. I've been able to connect to sql
server directly and get the info. i need but is there a way to just open
the data file (in crystal reports) without making a server connection?
... more >>
ASP COM and database access
Posted by sss at 12/31/2004 8:38:08 AM
Hello All,
I am currently creating a browser interface for our thick client which
was built on Visual Basic using COM ( a three tier environment). We
support environments where the SQL database server is separate from the
application server.
The problem I am facing is this.
When I ... more >>
Insert and Update Trigger on same Table
Posted by shottarum at 12/31/2004 8:19:20 AM
I currently have 2 tables as follows:
CREATE TABLE [CRPDTA].[F55MRKT119]
(
mhan8 int,
mhac02 varchar(5),
mhmot varchar(5),
mhupmj int
)
GO
CREATE TABLE [CRPDTA].[F55MRKT11]
(
mdan8 int,
mdac02 varchar(5),
mdmot varchar(5),
mdmail int,
mdmag int,
mdupmj int
)
What I would li... more >>
HELP! Non-Replicated DB thinks its a Publisher
Posted by David Rawheiser at 12/31/2004 3:24:20 AM
I hosed myself, please help me somebody.
We have a development server (SQL7) where the database is a restored copy of
production (where we use replication, but not in the development
environment).
While we rebuild the server recently (so we could move off of NT onto 2000),
everything loo... more >>
why is execution of a storedprocedure in QueryAnalyzer faster than executing this SP as scheduled job?
Posted by Heiko Pliefke at 12/30/2004 3:25:33 PM
Hi NG!
I wrote a stored procedure which at first deletes 100.000 rows and then
inserts 100.000 new rows.
There is a huge difference between executing this SP in the
query-analyzer (runtime approx. 2 minutes), and scheduling this SP as an
Job (runtime > 30 minutes!!!).
Why? Whats the i... more >>
Query to find what is not there
Posted by srussell705 at 12/30/2004 7:17:36 AM
I have a 1:1 relationship between tables and am finding that the parent
is sometimes mising the child.
How do I query for what is not there?
TIA
... more >>
Resources used by UDF
Posted by Ray at 12/30/2004 2:49:22 AM
I know that a query inside a called UDF does not show up when displaying the
estimated query plan, but are the resources (CPU, DiskIO) used by a UDF that
is call from within an SProc or embedded in a SQL statement included in
sp_who2 and Profiler BatchCompleted?
Also how performance drainin... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Intensively used function in view needs a minimum and maximum from a table
Posted by hdenooijer NO[at]SPAM hotmail.com at 12/30/2004 2:38:51 AM
I have a problem (who not?) with a function which i'm using in a view.
This function is a function which calculates a integer value of a
date. For example: '12/31/2004 00:00:00" becomes 20041231. This is
very handy in a datawarehouse and performes superfast. But here is my
problem.
My calenda... more >>
List of SQL Server Users
Posted by arfanameer NO[at]SPAM hotmail.com at 12/30/2004 12:06:50 AM
Is there any method by which i can get the list of all sql server users?
... more >>
transactional replication - re-syncing publisher from subscriber after failure
Posted by tgru at 12/29/2004 5:30:24 PM
I have taken over a transactional replication setup that is being used
for fault tolerance (I know, I know...).
The scenario I am concerned with is where the publisher goes down due to
failure, so we need to point our application at the subscriber and start
updating the data there. We are not... more >>
not associated with trusted SQL Server problem - windows service
Posted by epaetz at 12/29/2004 10:41:32 AM
I'm getting Not associated with a trusted SQL Server connection
errors on a .Net windows service I wrote, when it's running on my
application server.
It's not a problem with mixed mode security. I'm set for mixed mode and
I've been running the service on the app server for over a month with
... more >>
converting queries from Access2k to MsSql2k
Posted by dschl at 12/29/2004 9:01:46 AM
Hi,
I'm converting an Access 2000 database to Sql Server and must be
missing something obvious.
Using the Import utility in Sql Server, the Access queries seem to get
executed and the resultant data imported as tables. Oops!
Using the Upsize lizard in Access 2003, the queries aren't even ... more >>
Blogs
Posted by Michael van der Veeke at 12/29/2004 8:56:16 AM
Hi All,
Can anyone recommend any blogs that should be read on a regular basis?
Thanks
Michael... more >>
GWUTIL.DLL
Posted by KarFai at 12/29/2004 8:01:20 AM
Could not initialize GWUTIL.DLL
... more >>
Q: DTS and global variables
Posted by B at 12/29/2004 7:32:39 AM
Using SQL2000, I have a DTS that takes data from MySQL to sqlserver, the
catch is I want to specify a specific range of dates.
How to use a global variable? At the moment I manually changes the dates and
jobs run on a daily basis.
sample sql statement from Mysql connection:
select *
from T... more >>
Need Customer & Sales Database Designed /for Internet Sales Business
Posted by dp85024 NO[at]SPAM yahoo.com at 12/28/2004 8:54:02 PM
I'm looking for someone to either redesign the Northwind Access
customer database supplied by Microsoft (I've modified it some myself
and have been using a similar system for two years). Alternatively,
write a completely different system using SQL instead of Access. I must
be able to modify all ... more >>
Incorrect Date Conversion - Help Please
Posted by theintrepidfox NO[at]SPAM hotmail.com at 12/28/2004 6:26:55 PM
Dear Group
Some but not all of the dates are incorrect converted (incremented by 1
day) with the following SQL statement.
SELECT DISTINCT CONVERT(datetime,cast(ReturnedByDate AS int)) AS
ReturnedByDate, CONVERT(varchar(10),ReturnedByDate,104) AS
LabelReturnedByDate, ReturnedByDate FROM i2b_... more >>
SQL field sep question
Posted by thepoop NO[at]SPAM mindspring.com at 12/28/2004 6:18:10 PM
currently my select produces the following output:
"a", "b", "c"
I would like it to be:
a | b | c
does anyone know of a way to eliminate the double quotes and substitute
the pipe for the comma ?
thanks,
... more >>
Connecting to MSDE w/read only file?
Posted by Jason at 12/28/2004 3:09:42 PM
Hi,
Does anyone know how I can connect to an MSDE db using VB with a
read-only file? The file will be on a CD, and is actually just archived
data off a SQL server. I would like to package my app on a CD along
with the data file and allow users to pop in the CD and run the app,
assuming they alr... more >>
Update Versus Append
Posted by Vithar at 12/28/2004 2:41:20 PM
I have a database that is being used as sort of a reports data
warehouse. I use DTS packages to upload data from all the different
sources. Right now I have it truncating the tables and appending with
fresh data. I was considering using updates instead and my question was
which is more efficent?... more >>
Design
Posted by jlpv NO[at]SPAM totalise.co.uk at 12/28/2004 7:40:41 AM
Hello all,
I am trying to correctly model the relationship between products and
versions within my db. The problem I have is how to store the version
data. I need to collect the following information:
1) Major Build Number (int)
2) Minor Build Number (int)
3) Build Number (int)
4) SP number... more >>
Creating a common table expression--temporary table--using TSQL???
Posted by randi_clausen NO[at]SPAM ins.state.il.us at 12/28/2004 7:07:49 AM
Using SQL against a DB2 table the 'with' key word is used to
dynamically create a temporary table with an SQL statement that is
retained for the duration of that SQL statement.
What is the equivalent to the SQL 'with' using TSQL? If there is not
one, what is the TSQL solution to creating a temp... more >>
No buffers
Posted by Ray at 12/28/2004 2:52:11 AM
Occasionally on my SQL 2K SP3 Standard servers. The servers lock up with
the error.
LazyWriter: warning, no free buffers found.
After that I have to restart the SQLServer service to get things up and
running. How can I prevent this from happening?
Thanks,
Ray
... more >>
Reference for Security Nazi's
Posted by Tech Witch at 12/27/2004 7:02:08 PM
Does anyone know of a quick reference I could provide to the it security
folks at my work that outlines what file extensions, ports, and dll's sql
server uses? They've gone hog wild with 'security' software here to the
point that they invariably end up shutting down one behavior or another
with... more >>
sql server job output file -passing it onto second step
Posted by tram at 12/27/2004 11:07:51 AM
How do we pass on the step1 output file to step2 of the same job? I
would like to know the current job's output file programmetically,
instead of hard coding it. Any idaes would be appreciated.
Thanks
... more >>
move a database
Posted by Joop at 12/27/2004 9:45:14 AM
Can anyone tell me if it is possible to move the data directory of SQLServer
from the application server where SQL runs to another system (the file and
print server) in the network?
regards Joop
... more >>
Database not Shown
Posted by arfanameer NO[at]SPAM hotmail.com at 12/26/2004 10:10:58 PM
I am creating database with script sql file running in command prompt.
The database files are created but database is not shown on SQl Server
.. wat am I missing here?
The databse script is
CREATE DATABASE Budget
ON ( NAME = Budget_data,
FILENAME = 'c:\mssql7\data\Budgetdata.mdf',
SIZE = ... more >>
Creating Database in OSQL Error
Posted by arfanameer NO[at]SPAM hotmail.com at 12/26/2004 8:53:35 PM
How can I create a new database on sql server using OSQL command in
command prompt. I have the sql file for database creation and I use the
following command
C:\> osql -S servername -U sa -i db1.sql
it prompt my for password n i enter it since sa has a blank password
but after that it returns... more >>
Hints
Posted by newtophp2000 NO[at]SPAM yahoo.com at 12/26/2004 8:43:11 PM
I am kind of confused about the way SQL Server 2000 handles the hints
that users supply with their SQL statements.
>From BOL, it seems that one can specify them with "WITH (...)" clauses
in SQL statements known as table hints. Sometimes, multiple uses of
this form in a statement is OK. Then ... more >>
View Diagram Pane - how save layout after I change it? 2000
Posted by L Mehl at 12/26/2004 9:41:29 AM
Hello --
Is there a way to configure 2000 so it will save a view layout after I
change it in the diagram pane?
Thanks for any help.
Larry Mehl
... more >>
How to correctly propogate data back to the database
Posted by Phil at 12/25/2004 11:46:38 PM
I have the following code but do not know the best way to return the =
updated
DataTable back to the database. I believe I can use the Update method of =
the
Data Adapter, BUT if true, I also believe I have to 'long-hand' write =
code
for each individual column data that's being added......thi... more >>
sql server 2000 installation problem
Posted by spark at 12/25/2004 10:45:43 AM
i have win xp and i trying to install ms sql server 2000 Enterprise Edition
on it but after i try to do this i get a following message "Microsoft SQL
Server 2000 Enterprise Edition server component is not supported on this
operating system. Only clients components will be available for
installat... more >>
DB design question - survey system
Posted by DFS at 12/24/2004 12:03:49 PM
I've written several survey systems in which the majority of the questions
have the same or similar responses (Yes/No, True/False, scale of 1 - 5,
etc).
But this latest survey system I'm working on has 8-10 sections, with a
variety of question attributes and answer scales. Some items have jus... more >>
Create Database by using OSQL
Posted by arfanameer NO[at]SPAM hotmail.com at 12/24/2004 6:59:20 AM
I have to create database usign OSQL. i am usin a command like this
C:> osql -E -i db1.sql
But it doesnt create database and returns error saying user login
failed for administrator whereas I have no user for SQL server n it
uses by default . I also tried with sa username by entering it with... more >>
SA Password?
Posted by HazBin at 12/23/2004 10:58:02 PM
Folks,
Sorry 'bout this. I'm sure it must be an FAQ, but I can't find the answer
after many hours of looking :-(
I don't know the SA password any more. Is there a mechanism for setting (or
resetting) this to a known value? My assumption is that the encryption is
sufficiently strong that ... more >>
Re: User wise log analysis
Posted by shiva at 12/23/2004 8:36:04 PM
Hey, could any one help me with sample sql statements to get user wise
/ date wise activities happened in the database by analysing log ( or
database ) ?
My aim is to get output of INSERT, DELETE, UPDATE statements fired by
db users, date wise.
Thanks in advance,
... more >>
Execute windows on client machine
Posted by [BuKoX] at 12/23/2004 7:38:34 PM
Hello.
How to execute add users window, backup wizard and other windows from
Enterprice Manager on client machine? Does MDAC or sth is able to do this?
bye...
--
__ __
|__\\ | || |_// / \\ \_// FreeBSD: The Power To Serve
|__// |__|| | \\ \__// / \\ +------------... more >>
Log all connections to a SQL Server
Posted by Chris Sleightholme at 12/23/2004 3:03:51 PM
I need to log all users connecting to any database on my SQL Server 2000
cluster.
Anyone know how I can accomplish this ?
Ta,
CJ.
... more >>
Client/Server Connection
Posted by laststubborn at 12/23/2004 12:52:15 PM
Hi ;
I m trying to create Merge Replication. I was able to create the
replication on the same machine, however my aim is to use client
machine and do all the neessary work on the client machine and then
synchronize to the server. Thus, I have installed client version of SQL
2000, I connected ... more >>
group by clause Query help
Posted by aj70000 NO[at]SPAM hotmail.com at 12/23/2004 10:36:43 AM
This is my query
select ano,max(date),a_subject from MY_TAB where table_name='xyz' and
ano=877
group by a_subject,ano order by a_subject
ANO max(Date) A_Subject
877 2005-01-20 00:00:00.000 Subject_1
877 1900-01-01 00:00:00.000 Subject_2
877 2004-12-20 00:00:00.000 Subject_3
877 2005... more >>
Comparing two sets of data
Posted by NickName at 12/23/2004 8:12:20 AM
I have the following situation. One set of data has 274 rows (set2)
and anther has 264 (set1). Both data sets are similar in structure as
well as values for both of them were extracts from the same parent
table. Hope the info would substitute DDL. I need to find the "gap"
rows between these ... more >>
Classification crosstab query - 2000
Posted by L Mehl at 12/23/2004 7:04:37 AM
Hello --
I think this is the term for what I want (something that could be generated
in ACCESS using a pivot table, or, maybe Yukon).
We have data for sales by sales people in sales regions. More than one
person sells in a region.
We want to display data as follows:
... more >>
Convert 1084313300 (Ten Digit) value to Datetime
Posted by Imran Irfan via SQLMonster.com at 12/23/2004 2:04:02 AM
I have a field in a table that contains ten digit value representing a datetime. Is there any way to convert it to default datetime format
Thanks
--
Message posted via http://www.sqlmonster.com... more >>
ODBC
Posted by GTi at 12/23/2004 12:58:18 AM
I need to create a C/C++ function using ODBC interface to get the
string length of a column in a table.
What is the proper function to use ?
... more >>
<Newbie> Problem with Server-Name in Connect to Remote Server
Posted by uli2003wien NO[at]SPAM lycos.at at 12/22/2004 11:52:38 PM
Dear group,
kindly please answer me my newbie question :-)
I want to connect to a remote SQL-Server using sp_addlinkedservers and
"openquery". I tried and tried and I couldn't get it to work. Then i
found out, that it works with a different server which doesn't have
the '-' character withi... more >>
SQL Server 2000 and Windows 2003 SBS
Posted by !!bogus at 12/22/2004 11:50:24 PM
I have XP workstations and windows 2003 SBS. I setup an ODBC for an
application (tried both User and System DSN), but after a few usage, I get
the following error:
Connection failed:
SQLState: 'HY000'
SQL Server Error: 0
[Microsoft][ODBC SQL Server Driver]Cannot generate SSPI context.
A... more >>
master db restore
Posted by Dishan Fernando at 12/22/2004 6:39:14 PM
Hi.,
Can restore master database and other databases from one server to
other. I cant restore master database. i stared server in single user
mode, and restore master database. it says successfully restored and
server stoped. I cant up the server... :(
Regards
dishan
... more >>
osql timeout
Posted by second714 NO[at]SPAM hotmail.com at 12/22/2004 5:56:28 PM
Hi,
I have several big tables with rows more than 25 mil rows
and to update/delete/insert data in these tables,
it can take minutes.
I use BULK Insert/DELETE/Update with osql.
While I run one of these updates,
if I try to select, it seems like both read and write get locked.
Shouldn't SQL res... more >>
Securing Databases From Porting
Posted by AMK at 12/22/2004 1:15:20 PM
I have a situation where I have an app that uses a sql server (msde)
database. The app will be used in environments where no one should be
able to manipulate the data except the developers (app admins) - not
even site database admins. When the application and msde is installed,
a default instanc... more >>
|