About 3,120,000 results
Open links in new tab
  1. In SQL Server, like "use <<DatabaseName>>", how to "use …

    Oct 30, 2019 · SQL Server - copntrary to some other databases - always handles connections on a server (instance) level, the database is just the "default" database for a statement (you can …

  2. sql server - set default schema for a sql query - Stack Overflow

    A quick google pointed me to this page. It explains that from SQL Server 2005 onwards you can set the default schema of a user with the ALTER USER statement. Unfortunately, that means …

  3. Equivalent of LIMIT and OFFSET for SQL Server? - Stack Overflow

    In PostgreSQL there is the Limit and Offset keywords which will allow very easy pagination of result sets. What is the equivalent syntax for SQL Server?

  4. t sql - What is the use of GO in SQL Server Management Studio ...

    SQL Server Management Studio always inserts a GO command when I create a query using the right click "Script As" menu. Why? What does GO actually do?

  5. What is "with (nolock)" in SQL Server? - Stack Overflow

    Mar 27, 2009 · Can someone explain the implications of using with (nolock) on queries, when you should/shouldn't use it? For example, if you have a banking application with high transaction …

  6. Should I use != or <> for not equal in T-SQL? - Stack Overflow

    I have seen SQL that uses both != and <> for not equal. What is the preferred syntax and why? I like !=, because <> reminds me of Visual Basic.

  7. sql server - How do I perform an IF...THEN in an SQL SELECT?

    Sep 15, 2008 · I prefer the conciseness when compared with the expanded CASE version. Both IIF() and CASE resolve as expressions within a SQL statement and can only be used in well …

  8. sql server - Use database inside a stored procedure - Stack Overflow

    Nov 17, 2011 · SQL Server gives us a system stored procedure to do this. My understanding is that the recommended method would be to use sys.sp_grantdbaccess:

  9. c# - How to configure UseSqlServer? - Stack Overflow

    Apr 15, 2018 · My question is that what should I pass into the UseSqlServer method as parameters (***) so it can connect context to the SQL Server database using my supplied …

  10. Create Local SQL Server database - Stack Overflow

    Apr 11, 2017 · After installation you need to connect to Server Name : localhost to start using the local instance of SQL Server. Once you are connected to the local instance, right click on …