Viewing 15 posts - 6,136 through 6,150 (of 8,753 total)
In order to provide any meaningful answer, some more information must be provided, i.e. are the two tables in the same database, different databases on the same server, different SQL...
February 19, 2015 at 10:24 pm
You were lucky this time, maybe it's time to implement source control and other recognized development practices;-)
😎
February 19, 2015 at 9:56 pm
ramana3327 (2/19/2015)
We have a database. It is enabled for mirroring. We need to delete the old records. That is around 500k records from a table. But it has foreign key...
February 19, 2015 at 9:38 pm
Quick thought, unless you have 2 x LotsOfRAM on a single server, run ArcGis and SQL Server on two separate servers, my guess is that if those two start to...
February 19, 2015 at 8:14 pm
Quick thought, the reason for passing parameters as string works in SQL is the implicit type casting it performs. This does not exist in VB/C# and therefore the data type...
February 19, 2015 at 7:35 pm
Lynn Pettis (2/18/2015)
... Mark one off, 9 days on the calendar to go. 9 days on the calendar to go, 9 days to go, ...
Only 1001 to go:-D
😎
February 19, 2015 at 12:37 pm
stpii (2/19/2015)
Working in a project using Entity Framework (Code First)...
Until now the project has been connected to a (generated) SQL Server Compact 4.0 database,
but now we want to connect to...
February 19, 2015 at 12:08 pm
Quick suggestion, you can try to search in any/all temp folders on the workstations used to develop those procedures, there is a slim chance that you might find the code...
February 19, 2015 at 1:41 am
Throwing my spanner in the works, what does the following code return on your system?
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @SAMPLE_SIZE INT = 1000000;
DECLARE @BEGIN_VAL INT = 1;
DECLARE @END_VAL ...
February 18, 2015 at 12:35 pm
ChrisM@Work (2/18/2015)
SELECT
a.[Pax ID],
a.[Flight Date],
a.[Flight Number],
[Last Mod Date] = CASE WHEN x.[Pax ID] IS NULL THEN a.[Last Mod Date] ELSE x.[Last Mod Date] END,
[Status] = CASE WHEN x.[Pax...
February 18, 2015 at 10:28 am
Quick solution using the row_number function
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.PNRAdds') IS NOT NULL DROP TABLE dbo.PNRAdds;
CREATE TABLE [dbo].[PNRAdds](
[Pax ID] [int] NULL,
[Flight Date] [smalldatetime] NULL,
[Flight Number] [varchar](10) NULL,
[Last Mod Date]...
February 18, 2015 at 1:40 am
For fun, here is a 2012 and later method using TRY_CONVERT
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @Account TABLE(AccountNo varchar(3), MasterAccount varchar(10) )
INSERT INTO @Account
SELECT 'ABC','0000000ABC' UNION ALL
SELECT 'DEF','0000000DEF' UNION ALL...
February 18, 2015 at 1:07 am
The quick answer is yes, connection and users have to be set up, you might want to look into linking to AD if there are many users
:cool:y,
February 16, 2015 at 2:44 pm
TomThomson (2/16/2015)
ChrisM@Work (2/16/2015)
TomThomson (2/16/2015)
...
Stop digging, Tom! For goodness' sake, you're coming across as a cranky old fella with a short fuse. This is not what we are used to seeing...
February 16, 2015 at 12:24 pm
Quick suggestion, query the sys.sql_dependencies view
😎
SELECT
OBJECT_NAME(SD.object_id) AS OBJ_NAME
,OBJECT_NAME(SD.referenced_major_id) AS DEPENDENT_NAME
,SD.class_desc...
February 14, 2015 at 10:45 pm
Viewing 15 posts - 6,136 through 6,150 (of 8,753 total)