Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

sql-server-2008

Conversion of a varchar data type to a datetime data type resulted in an out-of-range value in SQL query

Try ISDATE() function in SQL Server. If 1, select valid date. If 0 selects invalid dates. Click here to view result EDIT : As per your update i need to extract the date only and remove the time, then you could simply use the inner CONVERT or EDIT 2 : The major reason for the error will be in your … Read more

Categories sql server Tags datetime, sql, sql-server, sql-server-2008

SQL Server WITH statement

My goal is to select result from one CTE and insert into other table with another CTE in the same procedure. How to do it? My error is… invalid object name xy. My query is

Categories SQL Tags sql, sql-server-2008, stored-procedures

How can I delete using INNER JOIN with SQL Server?

You need to specify what table you are deleting from. Here is a version with an alias:

Categories sql server Tags inner-join, sql, sql-delete, sql-server, sql-server-2008

How can I truncate a datetime in SQL Server?

This continues to frequently gather additional votes, even several years later, and so I need to update it for modern versions of Sql Server. For Sql Server 2008 and later, it’s simple: Note that the last three paragraphs near the bottom still apply, and you often need to take a step back and find a … Read more

Categories SQL Tags datetime, sql-server, sql-server-2008, truncate

Invalid length parameter passed to the LEFT or SUBSTRING function

That would only happen if PostCode is missing a space. You could add conditionality such that all of PostCode is retrieved should a space not be found as follows

Categories sql server Tags sql-server-2008

Delete all the records

How to delete all the records in SQL Server 2008?

Categories tsql Tags sql-delete, sql-server-2008, sql-truncate, tsql

How do I do multiple CASE WHEN conditions using SQL Server 2008?

There are two formats of case expression. You can do CASE with many WHEN as; Or a Simple CASE expression Or CASE within CASE as;

Categories SQL Tags sql, sql-server-2008

Enable ‘xp_cmdshell’ SQL Server

You need to enable it. Check out the Permission section of the xp_cmdshell MSDN docs: http://msdn.microsoft.com/en-us/library/ms190693.aspx:

Categories SQL Tags sql-server-2008

Conversion of a varchar data type to a datetime data type resulted in an out-of-range value in SQL query

Try ISDATE() function in SQL Server. If 1, select valid date. If 0 selects invalid dates. Click here to view result EDIT : As per your update i need to extract the date only and remove the time, then you could simply use the inner CONVERT or EDIT 2 : The major reason for the error will be in your … Read more

Categories sql server Tags datetime, sql, sql-server, sql-server-2008

An attempt was made to access a socket in a way forbidden by its access permissions

I have a website on HostGator and a dedicated server of my own running SQL Server 2008R2. The connection string I use is X.X.X.X,1433 which points to the IP address of my dedicated server. I have made the firewall settings on my server so that I can use SSMS & log into SQL Server from … Read more

Categories sql server Tags sockets, sql-server, sql-server-2008, tcp
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress