Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Programming / SQL / July 2008

Tip: Looking for answers? Try searching our database.

ThreadLast Post  Replies
Create a temp var for a select statement?18 Jul 2008 01:30 GMT2
I'm doing repetative calculations in my select statement below:
select client, path,
      str(kb/1024.0/1024.0,10,2) as 'GB',
      str(elapsed/3600.0,10,2) as 'Hours',
Update with Case Statement18 Jul 2008 01:06 GMT12
I am writing a stored proc for generating a report and it has below SQLs.
I am attempting to update the Premium and remittance basing on the source
id. But its not giving me the desired result. I am trying to update 34
columns basing on the source id.
Timeout expired17 Jul 2008 23:24 GMT5
I am getting this error "Timeout expired. The timeout period elapsed prior
to completion of the operation or the server is not responding."  And this
error pops up in 30 seconds.  Now the Sertver timeout is set to 600 seconds
or 10 minuted yet this is timing out in 30 seconds.  ...
Connection Status17 Jul 2008 21:46 GMT1
I have a table with the following information/columns:
ServerName
UserName
PWord
Schema comparison of two databases17 Jul 2008 21:42 GMT5
Visual Studio database edition's schema comparison tool does a good job of
identifying all differences between two databases.
How do I go about doing this schema comparison directly in SQL server 2005
or 2008 and without the Visual Studio database edition?
Secure a stored procedure and/or view17 Jul 2008 21:36 GMT3
Is there a way to create both stored procedures and/or views that are not
editable?  I.E. - a user cannot alter or see the code inside the procedure
itself?
Function to compare two version strings17 Jul 2008 19:57 GMT2
Is there an SQL function that compares version strings?  I know it can be
done with CLR function using  .NET System.Version class
Thanks,
Avi
Duplicate columns across 4 columns17 Jul 2008 19:09 GMT4
We have a table called Clients that allows up to 4 telephone numbers to be
entered.  I am trying to write a query that will identify if another client
has the same telephone number.  I need to look in any of the 4 fields.  E.g.
If Client 1 has a tel no of 555555555 in TelNo1ID ...
Handling null dates ?17 Jul 2008 18:32 GMT6
My tables have date ranges where the 'to' date can be open. I was advised not
to use nulls in date/time columns. How is this normally done? I was told to
put something like '12/31/2999' in there and test for that instead of null
but this seems strange to me.
sproc question17 Jul 2008 18:30 GMT2
In a sproc I need to issue a select, it returns five columns and always only
one row. I need to pass those five values back to the calling proc in output
parameters. Any of the five values could be Null. How do I do this? My 1360
page book (Wrox) does not show me. All the ...
Capturing SQL Version17 Jul 2008 18:06 GMT5
Is there a way to capture the current SQL version into a variable?  I want to
use this to build a conditional in a stored procedure.  Do it this way if
your on 8.0 or this way if your on 9.0.
- Mark
CTE Query17 Jul 2008 17:52 GMT3
I am trying to write a simple CTE query in SQL server 2005 as below:
WITH TPAIPCTE(PIN, PINCount)
AS
(
Find nvarchar with special chars17 Jul 2008 17:20 GMT2
SQL 2000.  I want to find all records in a table that have special
characters (e.g. %, &, @, etc.) in the RateCode column, basically anything
other than a number or a letter (both upper and lower case ok).  My SELECT
stmt would be like
Finding columns in tables with specific default constraints17 Jul 2008 16:39 GMT4
How can I display some specific defaults on some tables? For example some
tables may have a default on a CreatingUser_ID column that default the value
to suser_sid(). How could I display:
  1. table name
Insert query problem17 Jul 2008 16:20 GMT2
The following is the problem query.
MetricValue nvarchar(50)
Valid values for TargetValue can be NULL, '', or some other string.
INSERT INTO @M (ParameterID, EntityID, TargetValue)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.