Use SQL to filter the results of a stored procedure

There are no good ways to do that. It is a limitation of stored procedures. Your options are: Switch the procedure to a User Defined Function. All over world, today, people are making stored procedures that should be functions. It’s an education issue. You situation is a good example why. If your procedure were instead … Read more

How do I increase the maximum allowed attachment size for email sent using msdb.dbo.sp_send_dbmail in Microsoft SQL Server 2005/2008

In the Object Explorer frame of SQL Server Management Studio, expand the “Management” folder. Open the Database Mail configuration wizard. Click Next-> Choose the radio button for “View of change system parameters” and click Next. Now change the Maximum File Size (Bytes) property and click Next, then click Finish to save your changes. See Database … Read more

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