Can SQL Server Express LocalDB be connected to remotely?

No, SQL Server Express LocalDB doesn’t accept remote connections. The idea with shared network folder might work, but only if you are able to make sure the LocalDB instance is shutdown before you try to copy the file. Also keep in mind that only one LocalDB instance can have any given database file open at … Read more

Try_Convert for SQL Server 2008 R2

When using XML in SQL Server you can try to cast to a data type and receive null values where the cast fails. declare @T table ( Col varchar(50) ) insert into @T values (‘1’), (‘1.1’), (‘1,1’), (‘1a’) select cast(” as xml).value(‘sql:column(“Col”) cast as xs:decimal ?’, ‘decimal(28,10)’) as Col from @T Result: Col ————- 1.0000000000 … Read more

Getting offset of datetimeoffset in SQL Server

The DATEPART function has a tz option which returns the value’s UTC offset in int minutes. DATENAME also supports the tz option and returns the formatted UTC offset in the form [+-]HH:MM Note that a datetimeoffset value only contains a scalar UTC offset value, it does not contain any time-zone information at all (as multiple … Read more

Which user credentials does Integration Services Catalog use to execute packages? [closed]

Package Executions: SQL Server Data Tools: User credentials under which SQL Server Data Tools (SSDT) is operating will be used to execute the packages that are executed within SSDT. Under Windows Start \ All Programs \ Microsoft SQL Server 2012, if you click SQL Server Data Tools it will run under your credentials. To run … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)