all groups > sql server (alternate) > october 2007
Filter by week: 1 2 3 4 5
Query Variables
Posted by Yota at 10/13/2007 10:01:23 PM
Hi,
I'm new to SQL Server, but an experienced .Net developer. I'm trying
to accomplish a query the most efficient way possible. My question is
if you can define a temporary variable within a query to store tables
or fields. (Like the LET clause of LINQ) My query makes use of
subqueries whi... more >>
How do I link a database in SQL
Posted by rzito NO[at]SPAM si.rr.com at 10/13/2007 9:12:45 PM
I am working on a databse on my local box, my source data is on
another. How can I link the database and table from one server to
another? Currently I am using DTS to just transfer the records!
... more >>
Speed Issues After SQL Upgrade
Posted by Ben at 10/12/2007 2:46:33 PM
We recently upgraded our MS SQL Server 2000 to 2005.
Here is what we did:
1. Perform backup of the database from the old server.
2. Created a blank database in the new server.
3. Restored the database into the blank database located in the new server.
After this process, there was an obvi... more >>
Indexed View Crashes ASP.NET App
Posted by Jason Wilson at 10/12/2007 2:40:57 PM
I was looking to improve the performance of an ASP.NET application by
creating the an indexed view that could be used instead of some of the
root tables.
What I didn't realize is that it would affect any future conenctions
to the root tables.
This of course crashed the application on any ty... more >>
how to query for a column value that contains dashes
Posted by jdrake NO[at]SPAM living-dead.net at 10/12/2007 10:01:32 AM
Hi,
I have a large table with a 'datetime' column that has date and time
values in it. The data is in this format:
2007-10-02 09:54:00.000
The table is called 'profile' and the column 'msgdate'
I want to return only rows that match a specific date. So far I have
the following query wor... more >>
Would special character cause insertion problem?
Posted by tatata9999 NO[at]SPAM gmail.com at 10/12/2007 7:21:33 AM
Hi,
SQL env: sql server 2000
Target column of insertion: varchar(15)
Case, a var is made up of a character of the following characters
(random selection):
A,B,C,D,E,$,!,%,^,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,&,*,(,)
and a few numbers (random selection), and then
var = ran1&ran2
... more >>
get value of a single record instead of aggregated value with GROUP BY
Posted by blackpuppy at 10/11/2007 11:47:18 PM
How to get a record value instead of aggregated value with GROUP BY?
Assume that I have a PRODUCT_COMMENT table defined as below. It logs
the multiple comments for products. A product may have multiple
comments logged at different time.
CREATE TABLE [dbo].[PRODUCT_COMMENT](
[COMMENT_ID] ... more >>
Get Column Name
Posted by Eddie at 10/11/2007 4:41:02 PM
I'm running a PHP call to MS SQL to automatically look in sysbojects
and syscolumns to get each table name in realtime so I can make a list
and execute it. That part's fine. I'm having problems though getting
the name of the first column, so we can use that as the default sort.
Can anybody hel... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can a View be protected to support "JOINS" only?
Posted by Kevin Frey at 10/10/2007 6:09:14 PM
I know this is a way-out question, and I'm not confident of a positive
answer, but I'd like to know whether it is possible to protect/secure a View
so that it can only be used as a TARGET in a join operation, as opposed to
being used for direct SELECT.
for example:
SELECT * FROM MyView -... more >>
SQL Server 2005 database - Problem
Posted by Zeljko Bilandzija at 10/10/2007 2:22:01 PM
Hello!
I have a problem, and I looking for help if someone can handle this.
I use asp.net 2.0, and I create web site which support users from internet
(Web Site Administration Tool) and with that option i get database named
ASPNETDB.MDF.
When someone via page is creating account, database c... more >>
Collation Questions SQL Server 2005 SP2
Posted by aj at 10/10/2007 2:08:12 PM
A few collation questions on SQL Server 2005 SP2, which I'll call SQLS.
The default collation for SQLS is apparently SQL_Latin1_General_CP1_CI_AS.
I wish to use a variation of this, SQL_Latin1_General_CP1_CS_AI
collation, but there is no such collation returned from
fn_helpcollations(). A... more >>
Delete all data in the database
Posted by hunkgym at 10/10/2007 9:26:01 AM
Good day!
Currently I am using MS SQL Server 2000.
I wish to delete all data in the database table except data in login
table and security table. Furthermore, TRUNCATE is done on stand-alone
and child tables, else DELETE is done if table has any foreign key
references (normally refer to par... more >>
How to Execute SQL Scripts using Batch file?
Posted by raghutumma NO[at]SPAM gmail.com at 10/10/2007 9:00:42 AM
Hi,
How can we execute SQL Scripts using Batch file???
i think Batch file should contain Username,Password,Database and
Scripts...
Using that file scripts should run...
How can i give UserName,Password,Database and all those things?
Plz send me details how to do that...if possible with... more >>
bulk inserting uniqueidentifier column
Posted by bob.speaking NO[at]SPAM gmail.com at 10/9/2007 11:46:25 PM
Hi at all,
I'm trying to bulk insert a uniqueidentifier column from unicode file.
In my file I have guid generated from c# application and they are
formatted in this way (separated by "|") :
guid | field1 | field2
fc0c0c42-438e-4897-96db-8b0489e873ef|field1|field2
In my destination table I... more >>
How to select a word substring in a coumn header from right to left
Posted by sjharri NO[at]SPAM gmail.com at 10/8/2007 2:55:59 PM
I have an application providing me with multiple headers which I have
mergerd into one big header (below), this header my not always be the
same but I need to be able to extract a periodstart and periodend from
it. The periodstart will always be the third substring from the end
(or 3rd from righ... more >>
Sql Server 6.5 Client Tool and ASP.net
Posted by ABCL at 10/8/2007 2:14:12 PM
Hi,
I want to connect to Sql 6.5 server database server, What clientTool
should I use to connect it?
And also Is it possible to update records in the Sql 6.5 using
ADO.net 2.0?
Thansk In Advance
... more >>
Opinions on SQL Server hardware
Posted by Artie at 10/8/2007 9:23:58 AM
Hi all,
I was wondering if I could get some experienced opinions on SQL hardware to
run an ERP app on SQL 2000. The app does not yet support SQL 2005. The ERP
app has 25 users and likely won't exceed 30 users for several years. All
traffic is on the LAN. The ERP clients basically submit S... more >>
Help a newb (issue with excel, ms access and SQL Server)
Posted by joaotsetsemoita NO[at]SPAM gmail.com at 10/8/2007 3:20:13 AM
hello everyone.
I recently changed the database of a project from Ms Access to SQL
server and had to make a lot of adjustments but there's one here where
I can't figure it out how to do this in SQL server.
I was using the following to create an excel file based on the select
from Ms Access.... more >>
Joining SQL Results
Posted by Alec at 10/8/2007 2:11:09 AM
Sorry newbie question...
I have made two different search queries on the same table that both
retain the identical column information.
$resultfirst = @mysql_query ("SELECT company, address1, address2 FROM
table1 WHERE category=active ")
$resultsecond = @mysql_query ("SELECT company, addre... more >>
SQL Server does not allow remote connections.
Posted by aCe at 10/7/2007 12:08:26 PM
Hi all,
i'm using MSSQL Server 2005 Standart Edition.
i created ASP.NET application without MSSQL Server 2005 Express.
every time i Run my app always show these errors :
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may b... more >>
Full Text Index
Posted by Sharif Islam at 10/6/2007 2:45:23 PM
Could Full Index option only be configured during installation? When I
try sp_fulltext_table on a table, I get the message that full text is
not enabled for the system.
--sharif... more >>
migrating MSSQL databases to MySQL
Posted by agnesroz NO[at]SPAM gmail.com at 10/5/2007 2:09:46 PM
Hi all,
I want to migrate databases in microsoft sql server 2005 express
edition to mysql, please anyone can tell me how can i do this.. i
tried installing mysql migration toolkit, but i am getting error,
please can anybody tell is there any prior software to be installed to
work with migrati... more >>
Problem with object owner not dbo
Posted by Teresa Masino at 10/5/2007 10:46:34 AM
I'm probably forgetting something basic, but right now I'm stumped.
We are moving a database to a new server. bcp'd out the login
accounts and bcp'd them into the new server. Restored the database
backup and everything was working fine yesterday testing out the
application -- this is a 3rd par... more >>
Dynamic Tables Names and Temporary Tables Options
Posted by brstowe at 10/5/2007 7:57:48 AM
Firstly I consider myself quite an experienced SQL Server user, and
am
now using SQL Server 2005 Express for the main backend of my
software.
My problem is thus: The boss needs to run reports; I have designed
these reports as SQL procedures, to be executed through an ASP
application. Basic, ... more >>
Retrieve next lowest number in mixed set
Posted by Zamdrist at 10/4/2007 7:17:28 PM
Let's say I have a result set (records) containing numbers such as:
0
1
2
3
9
16
21
45
100
101
102
103
104
105
106
How might someone write a procedure to get the next lowest number in
this sequence? In this case it would be: 4. Some combination of
Select, Min & When, I am sure,... more >>
SQL2005 database backup files
Posted by barbara.plume NO[at]SPAM otda.state.ny.us at 10/4/2007 10:45:30 AM
We are in the early (development test) stages of upgrading from SQL200
to SQL2005. We have noticed that our backups, created with the append
option, are not stored as individual .bak files when viewed through
Windows Explorer. From time to time, we have to create disk space by
deleting backup ... more >>
negate RESULT SET, all inactive client
Posted by Mike at 10/3/2007 10:00:29 PM
I' d like to list all inactive clients.
Inactive client is a client who hasn't had invoice for 2 months.
I use INNER JOIN to join invoice view (vwDok4FSFZGrid) and clients
addresses table (adr_Nazwa). I skip empty values (adr_Ewid.adr_Nazwa !
=''). I select only invoices with date after the in... more >>
SQL Timeout Errors - Can Anyone Help?
Posted by at 10/3/2007 1:42:57 PM
I have a client who has been receiving hundreds of SQL timeout error
messages in their error logs. Specifically, the message looks like
this:
MESSAGE : System.Data.SqlClient.SqlException: Timeout
expired. The timeout period elapsed prior to completion of the
operation or the ser... more >>
ms sql 2005 developer edition
Posted by HandersonVA at 10/3/2007 7:39:49 AM
is it possible to install ms sql 2005 developer edition databse server
on window XP professional version 2002 with SP2 or just allows install
client version?
... more >>
SQL 2005 Ambiguous column name
Posted by rdraider at 10/2/2007 8:12:36 PM
I have a strange issue and was hoping somebody could explain. The below
query gives an ambiquous column name error on an install of SQL 2005
Standard, sp2. This same query works fine on another install of SQL 2000
Standard sp4 and SQL 2005 Workgroup. The order by clause is causing the
err... more >>
replication or mirroring
Posted by mmark751969 NO[at]SPAM yahoo.com at 10/2/2007 2:24:03 PM
We have a sql server 2000 sp3 server on a win2k3 server standard
edition. This is on dell hardware with a dell scsi dasd enclosure
directly attached. We want to duplicate the hardware and replicate or
mirror the database to the backup server and do a manual or automatic
failover in case of out... more >>
Exporting a MS-SQL database
Posted by bsagal NO[at]SPAM gmail.com at 10/2/2007 10:36:56 AM
I have an asp site connected to an MS-SQL database, I need to export
the database and import it in to a MySQL database? How would I be able
to do this? My only way of communicating with the MS-SQL database is
via asp scripts.
Thank You
Ben Sagal
PS. i have no problem fixing the SQL code ma... more >>
Finding common joins
Posted by Cindy at 10/1/2007 6:35:23 PM
At the risk of asking a stupid question -
Is anyone familiar with either a query against the systables or maybe
an outside tool that will provide a list of the most common joins that
have been made in user created views? I'm not talking about table
relationships that are established at the data... more >>
Simple recovery model affect performance?
Posted by rdraider at 10/1/2007 5:03:55 PM
Do you get any performance improvement by using a Simple recovery model?
Full backup run each night, loss of 1 days data is acceptable.
This is an ERP app (accounting, inventory, order entry, etc) so a mix of
reads and writes, 20 users.
SQL 2000 Standard, Windows 2000 sp4, 2gig ram, RAID1 for O... more >>
Alternate to cursors
Posted by srirangam.seshadri NO[at]SPAM gmail.com at 10/1/2007 12:12:22 AM
Hi,
I have a situation where I am loading data into a staging
table for multiple data sources. My next step is to pick up the
records from the staging table and compare with the data in the
database and based on the certain conditions, decide whether to insert
the data into the database... more >>
|